Skip to content

Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.

C++

Correct SR linear color and extent contracts with real GPU checks

Veyra Goal Agenteba2ec86d749
diff --git a/docs/REVIEW_SR_CONTRACT_2026-09-08.md b/docs/REVIEW_SR_CONTRACT_2026-09-08.md
new file mode 100644
index 00000000..8273c1ac
--- /dev/null
+++ b/docs/REVIEW_SR_CONTRACT_2026-09-08.md
@@ -0,0 +1,11 @@
+# Cycle63 independent SR contract review — 2026-09-08
+
+Reviewer review_sr_contract, new context and read-only: scoped PASS, no introduced P0/P1/P2. This does not approve all Q4 or the Goal.
+
+Independent preflight71/71 and phase775/75 passed; logs/delivery/1168a76f88224761a80b1cdfe975f3f7/result.json41.678s; app37361B9C23AEE741C11EA626DCF6C3D587DA73ACB848D2C1D1C1599EDE2A2445. Image tests image-0d5938b3c5be46c3b383a2bf50d059ff16.225s passed ordinary/height-only/same-size SR3/3/0, gray interior error1/0/0; height-only PNG viewed.
+
+Independent quality_probe --input loop/local/fixed_clips/test_av_1080p.mp4 --guidance motion --frames60 --diag (frames and60 were separate arguments), evidence logs/optimization-goal-20260908/review-sr60-a70819e6402f4e9d990164471d35ee4b/result.json5.925s with60second watchdog: SR60NR60NVOF59,nonzeroMotion2292,GBV0,failures0. Actual Create/Evaluate0x1 Success,SEH0. Sampler actual1920x1080 resources; output3840x2160. Test itself performs diagnostic readback; normal path does not.
+
+Official local PDF pages20/35/37 independently checked for linear IsHDR/AutoExposure; installed SDK float exposure helper checked. Double-dimension SR bypass and resource extent correction reviewed. Tracked fingerprint before/after0c9ecff3ff801bdb7cc881d35451c8e6300ea2b4 unchanged, no proprietary assets tracked.
+
+Four gray interior points prove limited color/route behavior, not full detail/edge or temporal quality. Real SR60 proves call/resource safety, not game-native equivalence or universal improvement. Natural/known4K reconstruction comparison, Q5–Q7, physical capture and long stability remain open.
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index 0ef4d114..7739bb50 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -1144,3 +1144,14 @@ Independent scoped review PASS: docs/REVIEW_COLOR_TIMING_2026-09-08.md; actual G
- Q4–Q7 and natural image tile quality remain; full Phase7/Goal stays in_progress. Existing export integrity unchanged.
Cycle62 independent PASS: docs/REVIEW_CAPTURE_RGB_2026-09-08.md. phase7 afe022a9 41.407s, image9ac2822f11.487s. NR-on fixture error0 is unmeasured, not a pixel quality assertion. Next Q4: official DLSS guide31March2026 PDF pages20/35/37 verifies linear input IsHDR and exposure contract; local SR evaluate/isBypass still width-only (Create checks both), fix and GPU-test next.
+
+## Cycle63 — SR linear input and extent contract
+- DlssSrBackend now declares linear input via IsHDR|AutoExposure (0x41); preExposure/exposureScale1. Official NVIDIA DLSS Programming Guide31March2026, local DLSS_repo/doc PDF pages20,35,37 and installed310.7 SDK helpers confirm contract. Reference https://github.com/NVIDIA/DLSS/blob/main/doc/DLSS_Programming_Guide_Release.pdf . SDR product does not become HDR display output. No fabricated sampling jitter, MVLowRes flag or runtime replacement.
+- Evaluate/isBypass now compare both dimensions, like Create; graph avoids creating SR for identical extents. Output-space motion pixels retained; zero-depth fallback remains explicitly unproven geometry.
+- Actual GPU baseline image-576edf2d1fa145bfbfa7573cffb4e29213.081s unflagged256→512 gray interiors0 error. Fixed image-87b550aa803042169c9a4458e564b59216.462s: ordinary upscale gray error1, height-only256x128→256x256 error0, same-size bypass error0/evaluate0. Three real SR Evaluates for each upscale. Baseline/fixed lastframe whole RGB MAE0.1771/max62, mainly edges; not a general quality improvement claim. Height-only PNG visually inspected.
+- Build scripts/build.ps1 -Root project -Preset x64-release logs build-sr-baseline/flags/diagnostic.log exit0. phase7-sr.log PASS75 checks logs/delivery/57facb26ad2d4776a9d5a37a8a814b80/result.json (before diagnostic-only fix).
+- 1080→4K24frames SR/NR passed, but did not trigger60frame stats. Follow-up sr-motion60-bd4905c3be0b4b559dec8925030df785 FAILED76 GPU diagnostic errors: sampler used output4K extent on source1920x1080 flow/conf textures. Fixed tools/quality_probe/main.cpp sampler to read/validate actual resource dimensions/formats; no normal pipeline/gate relaxation.
+- Final sr-motion60-c1220641df6b46d6afef93054dda5bf5/result.json exit0,5.8s,60sec watchdog: SR60,NR60,NVOF59,nonzeroMotion2292,GBV errors0,failures0,normal readback0. Source1920x1080/output3840x2160. Current app37361B9C23AEE741C11EA626DCF6C3D587DA73ACB848D2C1D1C1599EDE2A2445; qualityprobe57B89BC4A9CDB542A317E0060FD8ED1C477BECE5F203136D228EA4F5C94422FC.
+- Review pending. Natural/known4K reconstruction, UI protection, motion/FG quality and candidate ROI remain. Export integrity unchanged; physical capture not executed.
+
+Cycle63 independent scoped PASS: docs/REVIEW_SR_CONTRACT_2026-09-08.md. phase7 1168a76f41.678s/image0d5938b316.225s/SR60a70819e65.925s. Actual4K colorbars output visually inspected; not natural content. Next atomic Q5 GPU protected regions within residual composition, source-normalized coordinates, then professional rectangle selection/preset persistence; do not label private UI correction effective or forget SR/FG distinction.
diff --git a/include/veyra/ngx/DlssSrBackend.h b/include/veyra/ngx/DlssSrBackend.h
index c498f2b7..49fc616e 100644
--- a/include/veyra/ngx/DlssSrBackend.h
+++ b/include/veyra/ngx/DlssSrBackend.h
@@ -34,10 +34,10 @@ public:
};
struct EvalDesc {
- ID3D12Resource* color; // input (render resolution)
+ ID3D12Resource* color; // linear input (render resolution)
ID3D12Resource* output; // output (target resolution)
- ID3D12Resource* depth; // optional (zero depth for V1)
- ID3D12Resource* motionVectors; // optional (zero motion for V1)
+ ID3D12Resource* depth; // estimated depth or explicitly zero fallback
+ ID3D12Resource* motionVectors; // current-to-previous, output pixels; zero on reset
bool reset;
float jitterOffsetX;
float jitterOffsetY;
diff --git a/loop/EVIDENCE.md b/loop/EVIDENCE.md
index 2f03ff5f..6b8b9e84 100644
--- a/loop/EVIDENCE.md
+++ b/loop/EVIDENCE.md
@@ -464,3 +464,7 @@ Cycles56-61 independent review_color_timing PASS: docs/REVIEW_COLOR_TIMING_2026-
Cycle62 RGB capture: image-1660346e66504f8bac949030915d7398 11.706s PASS, exact saturated color / opaque BGR0, cut1 NR4 NVOF2. phase7 8211c4bf969647d099f62cd3cd11d96a PASS; app410EE473... Review pending; real capture unexecuted.
Cycle62 independent scoped PASS: docs/REVIEW_CAPTURE_RGB_2026-09-08.md; full Goal not approved.
+
+Cycle63 SR fixed image87b550aa16.462s and motion60c12206415.8s PASS; diagnostic failurebd4905c3 root-caused/repaired actual texture sizes. Official linear flags0x41; same-size/height-only validated. WORKLOG details; review pending.
+
+Cycle63 reviewer scoped PASS: docs/REVIEW_SR_CONTRACT_2026-09-08.md. FullQ4 visual reconstruction and Q5-Q7 remain.
diff --git a/loop/JOURNAL.md b/loop/JOURNAL.md
index 59ece2a0..6d708ffc 100644
--- a/loop/JOURNAL.md
+++ b/loop/JOURNAL.md
@@ -1440,3 +1440,11 @@ Cycle62 before edit: bypass capture RGB32 -> NV12 conversion; use BGR0 opaque pi
Cycle62 after edit: build/GPU image/phase7 passed. First fixture failure was missing standalone motion flag; production already set it. Freeze checkout for independent readonly reviewer.
Cycle62 reviewer PASS, freeze lifted. Checkpoint; next atomic Q4 SR linear-input flags/exposure and extent bypass with actual GPU outputs.
+
+Cycle63 before edit: Q4 SR contract. Add actual GPU source/output/color diagnostics for 2D and height-only upscale, compare current unflagged baseline with official linear IsHDR+AutoExposure contract. Fix identical extent bypass consistently; no synthetic jitter or runtime replacement. Preflight71/71; prior turn progress checkpointd731ccf.
+
+Cycle63 evidence: SR60 diagnostic failed76 D3D errors, CopyTextureRegion used4K working extent on1920x1080 source-space flow/conf. Fix diagnostic sampler to derive/validate actual resource extent/format before recording commands; preserve checks. 24frame run had not reached60frame sampling.
+
+Cycle63 final60frame diagnostic PASS after actual resource extent fix. Freeze project writes/GPU for independent scoped reviewer.
+
+Cycle63 review complete: scopedPASS, tracked fingerprint unchanged. Local checkpoint; prepare Q5 protection GPU contract and UI/preset closure.
diff --git a/loop/STATE.json b/loop/STATE.json
index a6604044..b133fc21 100644
--- a/loop/STATE.json
+++ b/loop/STATE.json
@@ -76,19 +76,19 @@
}
],
"cycle": {
- "completed": 62,
+ "completed": 63,
"maximum": 120,
"sameFailureAttempts": 0,
"maximumSameFailureAttempts": 3,
"noProgressCycles": 0,
"maximumNoProgressCycles": 5
},
- "currentTask": "Cycle62 direct RGB capture independently reviewed PASS",
+ "currentTask": "Cycle63 SR color/extent contract independently reviewed PASS; quality scope still open",
"lastGate": {
"name": "phase7",
"status": "passed",
"exitCode": 0,
- "evidence": "logs/delivery/8211c4bf969647d099f62cd3cd11d96a/result.json app410EE473..."
+ "evidence": "logs/delivery/1168a76f88224761a80b1cdfe975f3f7/result.json41.678s app37361B9C..."
},
"lastFailureFingerprint": "",
"failureLedger": [
@@ -107,8 +107,8 @@
"Current USB2 1080p50 physical throughput passed; user perceived latency/audio/actual FG display cadence still need confirmation.",
"Public proprietary runtime distribution rights unresolved; local delivery only."
],
- "nextAction": "Q4: set official linear SR input flags/exposure, fix width-only evaluate/isBypass, verify actual GPU color and extent outputs; then Q5-Q7",
- "updatedAt": "2026-09-08T09:45:28.2172149Z",
+ "nextAction": "Q5 protected regions: GPU residual composition and source-normalized coordinates, professional rectangle UI plus preset persistence; then SR/FG protection and remaining natural quality/Q6/Q7 comparisons",
+ "updatedAt": "2026-09-08T09:56:33.5048414Z",
"deliveryPlan": "docs/ACTIVE_DELIVERY_PLAN.md",
"captureAcceptance": "throughput_short_test_passed_user_latency_audio_pending",
"testInvocationLimitSeconds": 300,
@@ -124,7 +124,8 @@
"docs/REVIEW_IMAGES_PREVIEW_2026-09-08.md: independent scoped PASS; final phase7 3e2dd555...41.144s; save retry and image matrix independently verified",
"Cycles56-61:2Dtile,actualGPUpreview,rootqueuehover,odd/tallH264,14 timing checks,4 GPU color goldens; review pending",
"docs/REVIEW_COLOR_TIMING_2026-09-08.md: scoped independent PASS; phase7 31051b6d 41.143s, image GPU matrix and timing14 passed",
- "docs/REVIEW_CAPTURE_RGB_2026-09-08.md: independent phase7afe022a9 41.407s and image9ac2822f11.487s PASS; synthetic RGB only"
+ "docs/REVIEW_CAPTURE_RGB_2026-09-08.md: independent phase7afe022a9 41.407s and image9ac2822f11.487s PASS; synthetic RGB only",
+ "docs/REVIEW_SR_CONTRACT_2026-09-08.md: independent scopedPASS; SR60a70819e6 actual motion andGBV0, image route/color golden passed"
],
"reviewBaseCommit": "6f0ebaa687e3966d989bf138c86b6882380f20fb",
"localDelivery": "capture_fix_candidate_needs_review",
@@ -262,8 +263,8 @@
"testInvocationLimitSeconds": 300,
"productModified": true,
"consecutiveBlockedGoalTurns": 0,
- "previousGoalTurnClassification": "progress: checkpoint3b2806b reviewed image/preview and save recovery",
- "currentGoalTurnClassification": "progress: color/timing checkpoint0dee6c1 and reviewed direct RGB capture",
+ "previousGoalTurnClassification": "progress: reviewed direct RGB capture checkpointd731ccf",
+ "currentGoalTurnClassification": "progress: SR flags/extent GPU tests and diagnostic source-space repair",
"controlSynchronizationAuthorization": "2026-09-08 user: 确认,给你全部权限; applies to previously proposed exact two-hash synchronization"
}
}
diff --git a/src/ngx/DlssSrBackend.cpp b/src/ngx/DlssSrBackend.cpp
index d28fc712..cb988739 100644
--- a/src/ngx/DlssSrBackend.cpp
+++ b/src/ngx/DlssSrBackend.cpp
@@ -94,8 +94,13 @@ bool DlssSrBackend::create(NgxCoreHost& coreHost,
createParams.Feature.InTargetWidth = desc.outputWidth;
createParams.Feature.InTargetHeight = desc.outputHeight;
createParams.Feature.InPerfQualityValue = static_cast<NVSDK_NGX_PerfQuality_Value>(desc.perfQuality);
+ // Linear RGBA16F requires IsHDR even for SDR media (NGX guide 3.1).
+ // Video has no renderer exposure texture; use the documented GPU estimator.
+ createParams.InFeatureCreateFlags = NVSDK_NGX_DLSS_Feature_Flags_IsHDR |
+ NVSDK_NGX_DLSS_Feature_Flags_AutoExposure;
createParams.InEnableOutputSubrects = desc.enableOutputSubrects ? 1 : 0;
+ log::info("ngx",std::format("sr-backend: linearInput=true flags=0x{:X} exposure=auto mvUnits=output-pixels jitter=source-sampling",createParams.InFeatureCreateFlags));
uint32_t sehCode = 0;
const NVSDK_NGX_Result result = CallCreateDlss(cmdList, 1, 1, &handle_,
params, &createParams, sehCode);
@@ -134,7 +139,7 @@ bool DlssSrBackend::evaluate(ID3D12GraphicsCommandList* cmdList,
Status& status)
{
// 1:1 bypass: skip Evaluate entirely (Playbook section 11).
- if (shouldBypass(inputWidth_, outputWidth_)) {
+ if (shouldBypass(inputWidth_, inputHeight_, outputWidth_, outputHeight_)) {
++bypassCount_;
return true;
}
@@ -156,6 +161,7 @@ bool DlssSrBackend::evaluate(ID3D12GraphicsCommandList* cmdList,
evalParams.InMVScaleX = 1.0f;
evalParams.InMVScaleY = 1.0f;
evalParams.InPreExposure = 1.0f;
+ evalParams.InExposureScale = 1.0f;
evalParams.InRenderSubrectDimensions.Width = inputWidth_;
evalParams.InRenderSubrectDimensions.Height = inputHeight_;
@@ -175,7 +181,7 @@ bool DlssSrBackend::evaluate(ID3D12GraphicsCommandList* cmdList,
bool DlssSrBackend::isBypass() const
{
- return shouldBypass(inputWidth_, outputWidth_);
+ return shouldBypass(inputWidth_, inputHeight_, outputWidth_, outputHeight_);
}
} // namespace veyra::ngx
diff --git a/src/pipeline/EnhanceGraph.cpp b/src/pipeline/EnhanceGraph.cpp
index d9ffc697..9dc43c4e 100644
--- a/src/pipeline/EnhanceGraph.cpp
+++ b/src/pipeline/EnhanceGraph.cpp
@@ -73,7 +73,7 @@ bool EnhanceGraph::initialize(const EnhanceGraphDesc& desc)
}
if(!Extent{nrW_,nrH_}.valid()||nrW_>workW_||nrH_>workH_){veyra::log::error("resolution","invalid NR extent");return false;}
veyra::log::info("resolution",std::format("source={}x{} base={}x{} nr={}x{} flow={}x{} fg={}x{} output={}x{}",srcW_,srcH_,workW_,workH_,nrW_,nrH_,nvofW_,nvofH_,workW_,workH_,workW_,workH_));
- srEnabled_ = desc.enableSr;
+ srEnabled_ = desc.enableSr && (srcW_ != workW_ || srcH_ != workH_);
nrEnabled_ = desc.enableNr && !desc.noFeatures && !desc.noNgx;
fgEnabled_ = desc.enableFg && !desc.noNgx && !desc.stillImage;
nvofStandalone_ = desc.enableNvofStandalone && !desc.noFeatures;
diff --git a/tests/integration/ImageDimensionTests.cpp b/tests/integration/ImageDimensionTests.cpp
index 46dd676b..e7d7852f 100644
--- a/tests/integration/ImageDimensionTests.cpp
+++ b/tests/integration/ImageDimensionTests.cpp
@@ -125,6 +125,32 @@ bool captureRgb(bool nr){
std::cout<<"CAPTURE_RGB nr="<<nr<<" maxError8="<<maxError<<" cuts="<<m.sceneCutCount<<" nrEvaluations="<<m.nrEvaluateCount<<" nvof="<<m.nvofExecuteCount<<" pass="<<ok<<std::endl;
ring.drainQueue();graph.shutdown();av_frame_free(&f);ring.shutdown();ctx.shutdown();return ok;
}
+bool srPixels(unsigned iw,unsigned ih,unsigned ow,unsigned oh,const std::filesystem::path& directory){
+ gfx::D3D12DeviceContext ctx;gfx::CommandSlotRing ring;Status st;gfx::DeviceContextDesc device;
+ if(!ctx.initialize(device,st)||!ring.initialize(ctx.device(),ctx.directQueue(),ctx.fence(),ctx.fenceEvent(),4,st))return false;
+ pipeline::EnhanceGraph graph(ctx,ring);pipeline::EnhanceGraphDesc gd;
+ gd.sourceWidth=iw;gd.sourceHeight=ih;gd.workWidth=ow;gd.workHeight=oh;
+ gd.rgbInput=gd.stillImage=gd.enableSr=true;gd.enableNr=gd.enableFg=false;
+ gd.runtimeAbsPath=(std::filesystem::path(VEYRA_PROJECT_ROOT)/"runtime_local/nvidia").wstring();
+ if(!graph.initialize(gd)||!graph.createViews())return false;
+ AVFrame* f=av_frame_alloc();f->format=AV_PIX_FMT_RGBA;f->width=iw;f->height=ih;
+ if(av_frame_get_buffer(f,32)<0){av_frame_free(&f);return false;}
+ for(unsigned y=0;y<ih;++y)for(unsigned x=0;x<iw;++x){auto* p=f->data[0]+size_t(y)*f->linesize[0]+x*4;
+ unsigned quadrant=(x>=iw/2)+2*(y>=ih/2);p[0]=p[1]=p[2]=uint8_t(32+quadrant*64);p[3]=255;}
+ bool ok=true;int error=0;
+ for(unsigned frame=0;frame<3&&ok;++frame){
+ pipeline::EnhanceGraph::FrameOutputs out;sink::RgbaImage result;
+ ok=graph.process(f,frame*33.333333,frame==0,out,frame+1)&&sink::readRgba8(ctx,ring,graph.videoFrameResource(out.videoSlot),result);
+ if(ok){ok=result.width==ow&&result.height==oh;
+ for(unsigned q=0;q<4;++q){auto x=ow*(q%2?3:1)/4,y=oh*(q/2?3:1)/4;const auto* p=result.pixels.data()+(size_t(y)*ow+x)*4;
+ for(unsigned c=0;c<3;++c)error=std::max(error,std::abs(int(p[c])-int(32+q*64)));}
+ ok=ok&&sink::saveImage((directory/("sr-"+std::to_string(iw)+"x"+std::to_string(ih)+"-to-"+std::to_string(ow)+"x"+std::to_string(oh)+"-"+std::to_string(frame)+".png")).wstring(),result);
+ }out={};
+ }
+ auto evals=graph.metrics().srEvaluateCount;ok=ok&&error<=8&&evals==((iw==ow&&ih==oh)?0:3);
+ std::cout<<"SR_PIXELS "<<iw<<'x'<<ih<<" -> "<<ow<<'x'<<oh<<" interiorMaxError8="<<error<<" evaluates="<<evals<<" pass="<<ok<<std::endl;
+ ring.drainQueue();graph.shutdown();av_frame_free(&f);ring.shutdown();ctx.shutdown();return ok;
+}
int wmain(int argc,wchar_t** argv){
if(argc!=2)return 2;CoInitializeEx(nullptr,COINIT_MULTITHREADED);std::filesystem::path directory(argv[1]);std::filesystem::create_directories(directory);
bool ok=true;for(auto e:{pipeline::Extent{1,1},{257,513},{97,9001},{4097,257},{257,4097}}){if(!run(e.width,e.height,false,directory)){ok=false;break;}}
@@ -137,6 +163,9 @@ int wmain(int argc,wchar_t** argv){
if(ok)ok=tiled(2561,2561,true,directory);
if(ok)ok=codecBands(directory);
if(ok)ok=colorFallback();
+ if(ok)ok=srPixels(256,256,512,512,directory);
+ if(ok)ok=srPixels(256,128,256,256,directory);
+ if(ok)ok=srPixels(256,256,256,256,directory);
if(ok)ok=captureRgb(false)&&captureRgb(true);
CoUninitialize();return ok?0:1;
}
diff --git a/tools/quality_probe/main.cpp b/tools/quality_probe/main.cpp
index c08e81b9..b03efb00 100644
--- a/tools/quality_probe/main.cpp
+++ b/tools/quality_probe/main.cpp
@@ -56,16 +56,22 @@ struct GuidanceStats {
bool sampleGuidanceStats(veyra::gfx::D3D12DeviceContext& ctx,
veyra::gfx::CommandSlotRing& ring,
veyra::pipeline::EnhanceGraph& graph,
- uint32_t width, uint32_t height,
GuidanceStats& stats)
{
Status st = Status::Ok;
+ if(!graph.flowResource()||!graph.confidenceResource())return false;
+ const auto flow=graph.flowResource()->GetDesc(),confidence=graph.confidenceResource()->GetDesc();
+ if(flow.Dimension!=D3D12_RESOURCE_DIMENSION_TEXTURE2D||confidence.Dimension!=D3D12_RESOURCE_DIMENSION_TEXTURE2D||
+ flow.Width!=confidence.Width||flow.Height!=confidence.Height||flow.Width>16384||
+ flow.Format!=DXGI_FORMAT_R16G16_FLOAT||confidence.Format!=DXGI_FORMAT_R8_UNORM)return false;
+ const auto width=uint32_t(flow.Width),height=flow.Height;
+ veyra::log::info("quality",std::format("guidance sample source-space={}x{} (actual resources)",width,height));
// Sample a strided 64x36 window to keep the staging copy small.
constexpr uint32_t kCols = 64, kRows = 36;
if (width < kCols || height < kRows) return false;
const uint32_t stepX = width / kCols, stepY = height / kRows;
- // Full-width row copies: flow needs width*8 bytes, confidence width*1.
+ // Full-width row copies: flow needs width*4 bytes, confidence width*1.
const uint64_t flowPitch = (static_cast<uint64_t>(width) * 4 + 511) & ~511ull;
const uint64_t confPitch = (static_cast<uint64_t>(width) + 511) & ~511ull;
const uint64_t size = (flowPitch + confPitch) * kRows;
@@ -388,7 +394,7 @@ int main(int argc, char** argv)
// Sample guidance statistics every 60th frame.
if (nvofOn && framesThisClip % 60 == 0) {
- if (!sampleGuidanceStats(ctx, ring, graph, gd.workWidth, gd.workHeight, stats)) {
+ if (!sampleGuidanceStats(ctx, ring, graph, stats)) {
veyra::log::warn("quality", "guidance stats sample failed");
}
}