Repository navigation
Conversation
|
Tested 4ae5cc5 on Arch Linux, Python 3.14.10, CPU only: pass — new tests/semantic/test_wave64_halves_valu_mask_src.py 4/4 OK (related halves suites also green). Negative control: merge-base tool → 14 failures on the new file; restored, green again. No game files, no GPU. AI-assisted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & Why:
In
tools/rdna2spirv.py(Gen.mask_src), non-tracked 64-bit mask/carry-in operands on VALU select and carry-in ops (VALU_MASK_OPS:v_cndmask_b32/b16,v_*_co_ci_u32,v_addc*,v_subb*) read bitwave_lane(0..63 vs 0..31), so non-uniform constants like1,0xFFFFFFFF, or plain-data SGPR pairs diverge between one 64-lane wave and two 32-lane halves. This adds_uniform_mask_const(0,-1,0xFFFFFFFFFFFFFFFF,null), taintstj |= LANEwhensrcs[2]is neither a tracked mask nor a wave-uniform constant, excludesVALU_MASK_OPSfrom settinguniform/uniform_active, and exempts onlysrcs[2](not data operandssrcs[0..1]) ofVALU_MASK_OPSfromMASKD|Xso valid tracked carry-in masks likes[8:9]remain Tier A.Note: also introduces helper
_uniform_mask_const(like open PR #7611 for SALU masks/exec writes); will rebase cleanly once #7611 orfix/wave64-halves-readfirstlane-uniformlands.Files changed:
tools/wave64_halves.py(modified)tests/semantic/test_wave64_halves_valu_mask_src.py(added)Coordination:
Tested:
CPU-only on Windows 11 (Python 3.15, no Vulkan SDK / no GPU run, synthetic RDNA2 listings via
spirv_asmVulkan 1.2 +spirv_wave_interp1x64vs2x32):py -3 -m compileall -q make_game.py tools tests-> exit 0py -3 -B -I scripts/check_no_game_data.py-> exit 0py -3 -B -I tests/semantic/test_wave64_halves_valu_mask_src.py -v->Ran 4 tests in 0.988sOK (failed 14 subtests before fix)py -3 -B -I -m unittest discover -s tests/semantic -p "test_wave64*.py"->Ran 239 tests in 50.566sOKpy -3 -B -I tests/test_ci_registration.py->Ran 14 tests in 6.671sOKpy -3 -B -I scripts/run_semantic_tests.py tests/semantic(run on identicaltools/wave64_halves.pyatdde82f27e) -> 445/447 existing semantic files OK (same 2 pre-existingupstream/mainimage failurestest_image_store_d16andtest_image_atomics_guard)AI-assisted. No game files, extracted assets, or generated shaders are included.