[pr-fix][shaders] Route 'no wave32 lowering' into the retry ladder #108

Closed
CRCODE22 wants to merge 2 commits from CRCODE22/Darner:fix/issue-66-wave32-retry-ladder into main
First-time contributor

Summary

Programs in WIDE_SKIP_DEFAULT (like CS_TemporalResolve1_Alpha, hash 34992f2b65a789a5) were refused with
o wave32 lowering for this wave64 program, but the retry ladder in mit_strict never opened for them because
eeds_every_lane() did not recognise that message. The folded form with ordered LDS (which the test
efused_programs_fold_with_ordered_lds promises) was never tried at runtime.

Add the message to
eeds_every_lane() in mit/lower/analysis.rs so the ladder opens and the exact forms can be taken.

Testing

  • cargo test -p darner-shader --lib lower::analysis — 5 passed
  • Needs: in-game before/after of the same spot on a 32-lane card (RTX). This changes the translated form of 34992f2b (temporal resolve). Glass and alpha surfaces matter most.

Fixes #66

## Summary Programs in WIDE_SKIP_DEFAULT (like CS_TemporalResolve1_Alpha, hash 34992f2b65a789a5) were refused with o wave32 lowering for this wave64 program, but the retry ladder in mit_strict never opened for them because eeds_every_lane() did not recognise that message. The folded form with ordered LDS (which the test efused_programs_fold_with_ordered_lds promises) was never tried at runtime. Add the message to eeds_every_lane() in mit/lower/analysis.rs so the ladder opens and the exact forms can be taken. ## Testing - cargo test -p darner-shader --lib lower::analysis — 5 passed - **Needs**: in-game before/after of the same spot on a 32-lane card (RTX). This changes the translated form of 34992f2b (temporal resolve). Glass and alpha surfaces matter most. ## Related Fixes #66
Programs in WIDE_SKIP_DEFAULT (like CS_TemporalResolve1_Alpha, hash
34992f2b65a789a5) were refused with 'no wave32 lowering for this wave64
program', but the retry ladder in emit_strict never opened for them because
needs_every_lane() did not recognise that message. The folded form with
ordered LDS (which the test refused_programs_fold_with_ordered_lds promises)
was never tried at runtime.

Add the message to needs_every_lane() in emit/lower/analysis.rs so the
ladder opens and the exact forms can be taken.

This changes the translated form of 34992f2b (temporal resolve) on every
32-lane card. An in-game before/after of the same spot is needed to verify
the denoiser pass now runs correctly, especially on glass and alpha surfaces.

Fixes #66
Contributor

I ran the synthetic D3D12 test on this PR's published head, df7e6d1d65c8. The two runs on an RTX 4060 matched bd0de0cec244: the ordinary path produced the same generic refusal, the exact opt-in produced identical DXIL and the same 64 expected results, and the over-budget control reached the exact fold before returning the generic refusal.

At this comparison, emit_program still returns Ok((_, Some(64))) for the successful initial lowering. That case already enters the ladder. The supported closure creates NO_WAVE32_LOWERING after the ladder, so the added equality cannot open it. For #66, the WAVE64-RETRY folded exactly (DARNER_EXACT64) trace can show the actual fold error if the opt-in was active. Detailed A/B and diagnostic on #66

I ran the synthetic D3D12 test on this PR's published head, `df7e6d1d65c8`. The two runs on an RTX 4060 matched `bd0de0cec244`: the ordinary path produced the same generic refusal, the exact opt-in produced identical DXIL and the same 64 expected results, and the over-budget control reached the exact fold before returning the generic refusal. At this comparison, `emit_program` still returns `Ok((_, Some(64)))` for the successful initial lowering. That case already enters the ladder. The `supported` closure creates `NO_WAVE32_LOWERING` after the ladder, so the added equality cannot open it. For #66, the `WAVE64-RETRY folded exactly (DARNER_EXACT64)` trace can show the actual fold error if the opt-in was active. [Detailed A/B and diagnostic on #66](https://git.gtahub.st/TrustNo1/Darner/issues/66#issuecomment-851014)
CRCODE22 closed this pull request 2026-12-03 21:56:44 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
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!108
No description provided.