[pr-fix][shaders] Route 'no wave32 lowering' into the retry ladder #123
Loading…
Reference in a new issue
No description provided.
Delete branch "CRCODE22/Darner:fix/issue-66-wave32-retry-ladder"
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?
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. Fixes #66
Note: This replaces PR #122 (which replaced #108) due to recurring 'missing fork information' errors. Previous testing: tyr0nsur tested the fix on an RTX 4060 and found that the NO_WAVE32_LOWERING message is created by supported() after the retry ladder. See their detailed analysis on issue #66. f41 tested this PR together with #92 in combined builds on an RTX 5090 and found no issues. See their comment on PR #92.
This is the same one-line change as #98, #106, #108 and #122.
tyr0nsur checked it on an RTX 4060 in #108 (comment 851084). The successful first lowering returns
Ok((_, Some(64))), so it already enters the retry ladder. The "no wave32 lowering" refusal is only created after the ladder has run, so the new comparison inneeds_every_lanenever sees it. With this change the DXIL and results were identical tomain.For a merge it needs a log from the game where this exact program is refused on
mainand runs with the change, as asked in #98. Please add that evidence to this PR rather than opening it again.Tested PR #123 at
47beb2fon Windows (RTX 5080). Build OK (5m 35s).cargo test -p darner-shader --lib: 554 passed, 2 failed, 15 ignored; both failures reproduce with analysis.rs reverted to its pre-PR form, so they are pre-existing.darner translateover a GTA6 dump: identical summaries before/after (26,180/26,180 programs, 2,762/2,763 compute emitted), including withDARNER_HOST_WAVE=32andDARNER_EXACT64=34992f2b65a789a5.In game at Jason's house, the log shows the refusal still happens with the change applied:
A targeted warm of just 34992f2b65a789a5 gives the same result on both builds: 1 do not translate.
So this does not fix the refusal in game, matching the maintainer's analysis that the refusal is created after the retry ladder. Glass at the house looked normal on the #123 build (visual check only). Not tested: DXIL validation.
Drafted with AI assistance (OpenCode).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.