Repository navigation
Conversation
|
Independent check on Linux of head |
catminou4
left a comment
There was a problem hiding this comment.
Tested locally on macOS arm64 (rustc 1.98.1): PR head merged cleanly into current main (ffe310e), cargo test -p victory-shader --locked → 97. GPU/valu execution tests are Windows-gated and were not run here.
Non-active console lane masks (SOPs whose value is read as data after EXEC narrowed) are now lowered lazily and bitwise from their defining scalar op (mov/not/and/or/xor/andn2/orn2/nand/nor/xnor) instead of forcing a waveActiveBallot in the narrower block. Self-dependency is rejected via the balloting set, constants and special operands handled, and the macOS unit test lowers the v_cmpx-narrowed s_and_b32→s_bcnt1 case (97 passed, +1). Bitwise semantics match the hardware definition; please still run the shader suite on Windows since the interplay with control-flow masks is subtle.
|
I ran an offline A/B comparison of The
Compute DXIL emission rose from 1,441 to 1,446. All five newly emitted shaders received the validator diagnostic about an operation incompatible with the shader stage or another entry property. Both revisions validated 21,724 shaders overall, including 1,417 compute shaders. Comparing all 25,889 listed shaders by archive offset and stage showed zero validation gains or losses. Both repeats agreed within each revision. For the synthetic check, I copied only AI use : Assisted by GPT 6.2 Sol. |
Offline measurement on a retail dump, and the shader tests on AdaResult: no count change against Offline. I merged head 55f0dc4 onto Another 219 programs move from "a lane mask holding lanes elsewhere read as data" on to "a descriptor read only as data", the reason #1067 handles. So this PR may gain much more stacked on #1402, and I'm measuring that. Tests: with the same merge, No shader names or data are included, per the asset policy. AI-assisted (Claude Code). |
Stacked on #1402: +214 programs, 0 lostResult: On The merge. This PR conflicts with #1402 in one hunk of
Interaction with #1221. With #1221 also merged on #1402, the result is +213, one fewer than this PR alone. One program goes back to "a lane-mask join of an untracked mask". #1221 alone adds nothing on top of #1402 (details on #1221). Method: |
Static review of #1423 (head 55f0dc4)Summary: I read the diff against What looks right
Findings, ranked
AI-assisted (Claude Code); static review only, nothing run. |
|
Automated triage for the maintainers. Closing because this change is already in Lane masks holding lanes elsewhere computed bitwise from their defining scalar op in compute: main has exactly this as If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
In
Lower::mask_dword, when a compute shader (MaskData::Console) reads a lane mask as data that is not inself.x.st.active(e.g. a bitwise combination of outer-EXECmasks computed under a narrowerEXEC), lazily evaluate the mask's defining bitwise scalar operation (s_mov,s_not,s_and,s_or,s_xor,s_andn2,s_orn2,s_nand,s_nor,s_xnorin_b32/_b64) from its operands instead of failing witha lane mask holding lanes elsewhere read as data.Evaluating lazily inside
mask_dword(rather than eagerly inLower::sop) ensures control-flow-only masks in waterfall loops never triggerwaveActiveBallotorflags::WAVE_OPS.Adds unit test
emit::lower::tests::non_active_console_mask_sop_lowers_bitwise.Tested with:
cargo clippy -p victory-shader --all-targets --locked -- -D warningscargo test -p victory-shader --lockedcargo xtask policy