[rendering][shaders][NVIDIA] CS_TemporalResolve1_Alpha dropped on 32-lane hosts: no wave32 lowering, the denoiser pass never runs #66

Open
opened 2026-12-03 18:36:01 +00:00 by Ishmam23 · 1 comment

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:

WARN darner_gpu::pipeline: shader does not translate; its pipelines' draws are dropped
    stage="compute" hash=34992f2b65a789a5 ms=234
    error=converter shader.dxil v1: GFX10 code at 0x0: no wave32 lowering for this wave64 program is not supported

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 translate over 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.
  • The test refused_programs_fold_with_ordered_lds lists this hash and expects lower::with_exact_lds to fold it — but at runtime the exact fold never runs, because the refusal message (no wave32 lowering for this wave64 program) is not one of needs_every_lane's, so emit_strict's retry ladder never opens for it.
  • The refusal is constructed by supported()/too_wide after a form still reports wave 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_EXACT64 can name it. Happy to test a build.

**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: ``` WARN darner_gpu::pipeline: shader does not translate; its pipelines' draws are dropped stage="compute" hash=34992f2b65a789a5 ms=234 error=converter shader.dxil v1: GFX10 code at 0x0: no wave32 lowering for this wave64 program is not supported ``` 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 translate` over 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. - The test `refused_programs_fold_with_ordered_lds` lists this hash and expects `lower::with_exact_lds` to fold it — but at runtime the exact fold never runs, because the refusal message (`no wave32 lowering for this wave64 program`) is not one of `needs_every_lane`'s, so `emit_strict`'s retry ladder never opens for it. - The refusal is constructed by `supported()`/`too_wide` after a form still reports `wave 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_EXACT64` can name it. Happy to test a build.
Contributor

I checked the retry order on bd0de0cec244 and repeated the same test with only the shader hunk from #98 (8dd37e5)). At both needs_every_lanecall sites the result comes fromemit_program. A successful lowering that still needs wave64 arrives as Ok((_, Some(64))), which already enters the retry ladder on a 32-lane host. The generic NO_WAVE32_LOWERINGmessage is produced bysupportedat the end ofemit_strict`, after those attempts. Entry and final refusal

On 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 emit path had identical results with and without the proposed comparison:

  • With the synthetic kernel on the skip list and DARNER_EXACT64=0, the generic refusal was returned.
  • With DARNER_EXACT64 selecting 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.
  • With exact folding selected and a synthetic 256-VGPR variant, both revisions tried the fold and rejected its register demand. The returned error was still the same generic wave32 refusal.

For the reported shader, a run with a fresh isolated shader cache, the explicit DARNER_EXACT64 override, and DARNER_WAVE_WHY=1 would show whether the exact fold was selected and which error it returned. The useful line is WAVE64-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.

I checked the retry order on `bd0de0cec244` and repeated the same test with only the shader hunk from #98 (`8dd37e5)). At both `needs_every_lane` call sites the result comes from `emit_program`. A successful lowering that still needs wave64 arrives as `Ok((_, Some(64)))`, which already enters the retry ladder on a 32-lane host. The generic `NO_WAVE32_LOWERING` message is produced by `supported` at the end of `emit_strict`, after those attempts. [Entry and final refusal](https://git.gtahub.st/TrustNo1/Darner/src/commit/bd0de0cec2441a97928e420abf99076cea15d9ab/crates/darner-shader/src/emit/mod.rs#L875) On 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 `emit` path had identical results with and without the proposed comparison: - With the synthetic kernel on the skip list and `DARNER_EXACT64=0`, the generic refusal was returned. - With `DARNER_EXACT64` selecting 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. - With exact folding selected and a synthetic 256-VGPR variant, both revisions tried the fold and rejected its register demand. The returned error was still the same generic wave32 refusal. For the reported shader, a run with a fresh isolated shader cache, the explicit `DARNER_EXACT64` override, and `DARNER_WAVE_WHY=1` would show whether the exact fold was selected and which error it returned. The useful line is `WAVE64-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.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner#66
No description provided.