From 448be7f6efd895875f90b58776e661d74e769692 Mon Sep 17 00:00:00 2001 From: chrg6 Date: Tue, 10 Nov 2026 02:41:52 -0500 Subject: [PATCH] Give DLSS the sizes of the feature it evaluates at every evaluation, not those of the feature made last. The NGX parameter object is one for every scene size, and the sizes and the mode were set in it only when a feature was made. Once the gameplay feature had been freed unused during a pause of 3,600 frames and made again at the unpause, the pause screen's feature ran with the gameplay feature's smaller input size at the next pause: every other band of rows of the picture came out black or noise for as long as the game stayed paused. Reproduced with a scripted pause, unpause, pause on 0.6.1.22: striped in every run in which the feature had been freed, clean in every run in which it had not, whatever the texture, write-back, HDR and frame generation settings. Co-Authored-By: Claude Fable 5.2 (cherry picked from commit aa3c34e163c700b4e426eb094e080c157eaac8bf) --- runtime/vk_dlaa.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/runtime/vk_dlaa.c b/runtime/vk_dlaa.c index cb93576f..09ed62d5 100644 --- a/runtime/vk_dlaa.c +++ b/runtime/vk_dlaa.c @@ -1480,14 +1480,19 @@ static void evaluate(VkExec *ex, const VkExecTarget *dst) { (int)t->format, (int)z->format); goto evaluated; } + // The sizes and the mode of this size's feature, at every evaluation and not only when the feature is made: the + // parameter object is one for all sizes, and DLSS reads these from it when it evaluates too. Left as the last made + // feature's, the pause screen's feature (the picture's size in and out) ran with the gameplay feature's smaller input + // size once that one had been freed unused (stale_sizes) and made again after it: every other band of the picture's + // rows came out black or noise, from the second pause on, for as long as the game stayed paused. + p_setu(p, "Width", w); + p_setu(p, "Height", h); + p_setu(p, "OutWidth", ow); + p_setu(p, "OutHeight", oh); + p_seti(p, "PerfQualityValue", perf_quality(w, ow)); if (!e->feat) { p_setu(p, "CreationNodeMask", 1); p_setu(p, "VisibilityNodeMask", 1); - p_setu(p, "Width", w); - p_setu(p, "Height", h); - p_setu(p, "OutWidth", ow); - p_setu(p, "OutHeight", oh); - p_seti(p, "PerfQualityValue", perf_quality(w, ow)); // IsHDR | MVLowRes | AutoExposure: linear scene light, motion vectors at the render size, no exposure texture p_seti(p, "DLSS.Feature.Create.Flags", (1 << 0) | (1 << 1) | (1 << 6)); p_seti(p, "DLSS.Enable.Output.Subrects", 0);