Repository navigation
wave64_halves: fix readfirstlane-uniform soundness on widened/narrowed EXEC and unsigned v_dot*c - #8157
Open
ds1s1s1 wants to merge 1 commit into
Open
wave64_halves: fix readfirstlane-uniform soundness on widened/narrowed EXEC and unsigned v_dot*c#8157ds1s1s1 wants to merge 1 commit into
ds1s1s1 wants to merge 1 commit into
Conversation
…d EXEC and unsigned v_dot*c
|
Tested 2c4155384 on Arch Linux, Python 3.14.10, CPU only: pass — new tests/semantic/test_wave64_halves_uniform_soundness.py 10/10 OK. Negative control: merge-base tool → all 10 fail; 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:
Addresses @emirduran707's Tier B
readfirstlane-uniformsoundness finding in #7599 and unsignedv_dot*c_*RMW accumulation bugs intools/wave64_halves.py. Specifically: (1) addsv_dot2c_u32_u16,v_dot4c_u32_u8, andv_dot8c_u32_u4toRMW_DESTso prior divergence/taint is preserved; (2) clearsst["ua"]on non-subset/unknownEXECwrites (s_wqm_b64 exec, exec,s_or_saveexec_b64,s_xor_saveexec_b64) and requiresself.ancestor(("e",), ...)injoin()andEXECrestore; (3) requiresst["f"]for full-wavev_readfirstlane_b32uniformity so narrowed-EXECreads emitACT_RFL; (4) requires launch-EXECancestry forv_readlane_b32uniform rewrites; and (5) clearsuniform/uniform_activewhenevertj != 0so non-Xtainted scalars (CNT,FF1, etc.) never make a VGPR uniform.Files changed:
tools/wave64_halves.py(modified)tests/semantic/test_wave64_halves_uniform_soundness.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_uniform_soundness.py -v->Ran 10 tests in 0.422sOK (failed 10 subtests before fix)py -3 -B -I -m unittest discover -s tests/semantic -p "test_wave64*.py"->Ran 245 tests in 41.951sOKpy -3 -B -I tests/test_ci_registration.py->Ran 14 tests in 5.713sOKpy -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.