experimental: shader: lower wave32 compare-mask consumers (draft, do not merge) #3897
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3897
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3895"
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?
@SimSalabimse on GitHub · 2026-12-02 23:21 UTC · original
SimSalabimse:local/native-cmp-mask-dest→main· +7076 −110 · 38 files · 18 commits · draftDraft, do not merge. Experimental piece of the native graphics path work (getting the native shader path to draw real frames). Do not merge until it has been tested on the Windows test PC.
What it changes
Wave32 compare-mask consumers in the native lowering (
src/gfx1013_direct_graphics.inl,src/gfx1013_compute_native.cpp). An odd SGPR compare mask is now accepted when every read of it is one of:v_cndmask_b32of that SGPR,s_and_saveexec_b32whose EXEC is restored by ans_mov_b32ors_or_b32,s_and_b32with EXEC or with another mask, ahead of that restore.A b64 consumer of the same mask stays refused. The control script
tests/native_cmp_mask_dest_check.pyis extended for these shapes.Dependencies
This branch is stacked. It is 18 commits ahead of
main: the 17 below the top commit are the staged native path work that is not onmainyet (diagnostics, fixed pixel entry layouts, pixel EXEC arms, vertex fetch before a scalar branch, and an earlier odd-SGPR compare mask commit). Only the top commit, "Lower the three remaining compare-mask consumers", is new in this PR, so review that commit alone. The branch does not merge cleanly into currentmain(conflict insrc/direct_compute_cache.cppfrom the stack) and will be rebased once the stack below it has landed.Tests
None yet. This has not been built or run through ctest, DXC, WARP or hardware. Planned:
native_cmp_mask_dest_*, thennative_direct_container,native_execz_join_mask_*,native_graphics_vertex_vcc_join_*,native_pixel_exec_arms,native_pixel_entry_*andstartup_ngg_slice, one GPU test at a time.Not measured: whether any title shader reaches the newly accepted shapes in a real run.
AI-assisted (Cursor)
github-bot referenced this pull request2026-12-03 13:55:11 +00:00
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.