Repository navigation
Conversation
This was referenced Nov 23, 2026
ihymonte
reviewed
Nov 23, 2026
ihymonte
left a comment
There was a problem hiding this comment.
Tested b2f0de2 merged with main dde82f2 on macOS (Apple Silicon arm64), Python 3.12.16 (CPU only, no llvm-mc, no SPIRV-Tools, no GPU, no game files): pass
python3.12 -I tests/semantic/test_ds_gds_rejection.py: 9 run, 7 passed, 2 skipped (needs llvm-mc), 0 failed.- Related suites:
test_ds*.py(40 run, 38 passed, 2 skipped) andtest_lds*.py(376 run, 372 passed, 4 skipped). - Negative control (reverted
tools/rdna2spirv.pyonly):test_ds_gds_rejection.pyfails as expected (34 failures acrosstest_cs_ds_gds_rejected,test_gs_ds_gds_rejected, andtest_direct_handlers_reject_gds, 2 skipped). python3.12 -m py_compileandscripts/check_no_game_data.pyon both touched files: clean.- Code read:
_insnrejectsds_*+gdsahead ofNOOPS(catchingds_nop gds) and stage dispatch, with matching defensive guards inswizzle,lds_op,ds_permute,ds_bpermute_b32, andgs_ds.
AI-assisted (Antigravity).
Contributor
|
Tested b2f0de2 on Windows 11 (26200.9974), Python 3.12.0, llvm-mc AOMP 16.0-45 (gfx1030), spirv-as/spirv-val 1.4.341.0: pass.
Synthetic instruction sequences only; no game data, 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.
Claim: #7804 (comment)
Summary
Reject the
gds(Global Data Share) modifier on allds_*instructions intools/rdna2spirv.pyso GDS operations are never silently miscompiled to workgroup-local%lds:"gds" in modswithUnsupported(op + " gds")inGen._insn(also coveringds_nop gds) and defensively at the top of everyds_*lowering path:lds_op,ds_permute,ds_bpermute_b32,swizzle, andgs_ds.gdscheck insideds_read_addtid_b32/ds_write_addtid_b32now thatlds_oprejectsgdsupfront.tests/semantic/test_ds_gds_rejection.pycovering:gdsrejection across DS reads, writes, atomics, cross-lane ops (ds_swizzle_b32,ds_permute_b32,ds_bpermute_b32),ds_nop, and GSgs_ds;lds_op,ds_permute,swizzle, andgs_ds;llvm-mc -triple=amdgcn -mcpu=gfx1030->rdna2_decode->rdna2spirvround-trips with DS bit 17 (GDS) set;gdsDS ops still translate, passspirv-val --target-env vulkan1.2, and execute identically inspirv_mini_interp.Verification
python -I -m unittest discover -s tests/semantic -p test_ds_gds_rejection.py -v(withllvm-mcandspirv-val1.4.363.0): 9/9 passed.python -I -m unittest discover -s tests/semantic -p "test_ds*.py" -v: all passed.python -I -m unittest discover -s tests/semantic -p "test_lds*.py": 376 tests (OK, skipped=3).python -I -m compileall -q tools testsandgit diff --check origin/main..HEAD: clean.AI-assisted (Gemini 4 Neon).