shader-compiler: Lower wave32 masked DPP prefixes and totals in wave allocation #181
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/brcly--TuxBox!181
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-181"
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?
@s3rius on GitHub · 2026-11-25 17:36 UTC · original
s3rius:shaderx/wave32-masked-dpp→main· +715 −67 · 8 files · 3 commits · openSummary
Lower wave32 masked DPP prefixes and totals in wave allocation. prepare now handles prefixes (always) and pixel totals (always); compute totals are left for wave_sum. Added lower_problematic_totals/total_to_wave_active_sum in wave_alloc.rs and, in the lockstep-failure branch of pipeline.rs, lowers the totals that wave_sum rejects on divergent control flow to WaveActiveSum before re-validating. Extracted check_region from wave_sum.rs so wave_alloc reuses the exact per-region control-flow check. Full suite: 303 lib + 2 integration pass; 30/32 target shaders compile (the 2 remaining fail on a pre-existing, unrelated constant-lane gather limitation).
Verified on Lanes
A pull request is not merged until Lanes passes on a GPU. Run:
python tuxbox.py checkpassed on this branchGPU, driver and backend:
Paste the summary printed at the end:
Checks
CI runs the Python unit tests, the shader compiler, DXBC, and XG layout tests, and a Windows typecheck of
tuxbox-d3d12.If this pull request changes evidence JSON, regenerate the results table and the progress map and include both files:
@brcly on GitHub · 2026-11-25 18:53 UTC · original
im gonna hold on this for now, as locally, this caused compilation failures for myself. i will look into it
@s3rius on GitHub · 2026-11-25 20:03 UTC · original · edited 2026-11-25 20:38 UTC
@brcly , okay, did some updates tho. Can you try it once again? It also was failing on my machine before. Now it passes.
@tsunderejay on GitHub · 2026-11-25 21:04 UTC · original
Automated review against current main found a blocking correctness issue: the new wave32/fallback paths no-op DPP bodies without retaining the previous liveness proof for scratch registers. A later read of a nopped temporary can therefore receive stale/undefined data, and this also regresses the older wave64 pixel lowering. Please restore/adapt the dead-register proof and add a negative test. The current smoke test also does not write/verify the prefix result, so it cannot detect a numerical miscompile.
@s3rius on GitHub · 2026-11-26 00:23 UTC · original
@tsunderejay, can you re-verify this PR with the latest changes?
@s3rius on GitHub · 2026-11-26 00:26 UTC · original
Okay, nevermind. I rebased on main and it has more errors now.
@brcly on GitHub · 2026-11-26 00:33 UTC · original
Gonna hold off on this just now as I'm working on a fix for differentiating AMD and Nvidia GPU's
Main will be updated when it's implemented.
I will eventually move to branches and such; it's just in this part of development. I'm trying to get something that's as close to "working" as possible before going after certain individual improvements.
I didn't expect this repo to blow up as quickly as it did and for so many people to help drive it to a usable state.
I thank you for your efforts so far, we'll get there!
@s3rius on GitHub · 2026-11-26 00:39 UTC · original
Okay. NP. Do you have any direction which I can look that that will not interfere with your upcoming changes?
@s3rius on GitHub · 2026-11-26 01:45 UTC · original
Rebased on top of main with applying changes.
@s3rius on GitHub · 2026-11-26 03:07 UTC · original
Rebased once again + ran GPU tests.
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.