[rendering][shaders][NVIDIA] CS_TemporalResolve1_Alpha dropped on 32-lane hosts: no wave32 lowering, the denoiser pass never runs #66
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version: v2026.12.02.02-247 (source main
dd2f061); the v2026.12.02.03 playtest exe shows the same.Card: NVIDIA RTX 4080, driver 621.40, Windows 11 26300, DLSS quality + 2x frame generation, RT off.
What happens
Every run, one compute program refuses to translate and its pipelines' draws are dropped:
The program is
sr_denoising:CS_TemporalResolve1_Alpha_68979fba_Wrapped #34992f2b65a789a5(Streamline's denoising pack, shaders.rpf). On screen this shows as a slight persistent graphical glitch.What I tried
DARNER_EXACT64=34992f2b65a789a5— still refused.DARNER_LDS_LAST_RESORT=e63d22c4def9ba6a,34992f2b65a789a5— still refused.DARNER_WAVE_FOLDED_FIRST=CS_TemporalResolve— still refused.DARNER_WAVE_WIDE_FALLBACK_SKIP=(empty, every form again) — still refused, no other program broke.The hash is in
WIDE_SKIP_DEFAULT(emit/lower/analysis.rs), so it only ever gets the exact forms — and they refuse it at runtime.Notes
darner.exe translateover the game folder reports 2762 of 2763 compute programs emitted (the one failure there is the lane-mask shadow kernel), so the same container emits under the CLI's switch set.refused_programs_fold_with_ordered_ldslists this hash and expectslower::with_exact_ldsto fold it — but at runtime the exact fold never runs, because the refusal message (no wave32 lowering for this wave64 program) is not one ofneeds_every_lane's, soemit_strict's retry ladder never opens for it.supported()/too_wideafter a form still reportswave Some(64).A suggestion: either give the skip-list programs the ordered-LDS fold by default as the test promises, or route this message into the ladder so
DARNER_EXACT64can name it. Happy to test a build.I checked the retry order on
bd0de0cec244and repeated the same test with only the shader hunk from #98 (8dd37e5)). At bothneeds_every_lanecall sites the result comes fromemit_program. A successful lowering that still needs wave64 arrives asOk((_, Some(64))), which already enters the retry ladder on a 32-lane host. The genericNO_WAVE32_LOWERINGmessage is produced bysupportedat the end ofemit_strict`, after those attempts. Entry and final refusalOn Windows 11 build 26300, RTX 4060 (D3D12 reported 32..32 lanes, driver 621.40) and Rust 1.98.1, I used a generated compute kernel with cross-half LDS reads in a divergent loop. The app's
emitpath had identical results with and without the proposed comparison:DARNER_EXACT64=0, the generic refusal was returned.DARNER_EXACT64selecting the kernel, both revisions took the exact wave32 fold, produced byte-identical DXIL, and returned the expected values for all 64 logical lanes in a D3D12 dispatch.For the reported shader, a run with a fresh isolated shader cache, the explicit
DARNER_EXACT64override, andDARNER_WAVE_WHY=1would show whether the exact fold was selected and which error it returned. The useful line isWAVE64-RETRY folded exactly (DARNER_EXACT64). A generic refusal alone cannot distinguish those cases. The title's shader and in-game visual output were outside this test.