Repository navigation
Translate compute selects with numeric lane masks - #69
flapwarp78 wants to merge 1 commit into
Conversation
|
checked: PR head Ran (shader crate only):
Review notes:
Not verified: Windows runtime, GPU, in-game execution, or the 2,682-shader scan (needs game data I did not use). |
|
Tested
No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent). |
|
Measured this on current main ( "A select on an untracked mask" disappears for all 288 programs main refuses with it, and nothing that validates on main breaks. Only 2 fully validate yet. The rest stop at the next gap: 205 at "a descriptor read only as data", 33 at "a descriptor's address or format read as data", 32 at "a structured buffer of unknown stride" (which #704 covers). Tested and written up with Claude's help. |
What changed
v_cndmask_b32can read a mask held as ordinary scalar data. The emitter now reads the mask words from that instruction's SSA operands and tests the bit for the current console lane. Wave64 uses both words, even if different instructions wrote them.The compiler retries with a fixed wave size only when a live numeric select blocks translation.
Verification
The recovered shader requires wave64. In-game execution is still unverified.