Repository navigation
test: GPU fixtures for masked SAD, v_swaprel and s_movrels - #1036
Open
YaBulochka wants to merge 1 commit into
Open
YaBulochka wants to merge 1 commit into
YaBulochka wants to merge 1 commit into
Conversation
|
Tested on NVIDIA Blackwell: head
Not tested
AI use
|
Contributor
|
Tested NVIDIA RTX 3080 (620.73.04) and AMD Raphael RDNA2 iGPU gfx1036 (RADV, Mesa 26.3.1), CachyOS. This runs translated SPIR-V; it is not a native RDNA2 measurement. AI-assisted (Claude Code) |
cs_msad_mqsad covers v_msad_u8 and v_mqsad_u32_u8: masked bytes, the sliding 64-bit windows, and 32-bit accumulator wraps. cs_swaprel covers both M0 fields, ignored M0 bits and a self-swap; cs_movrels covers s_movrels_b32/b64, an overlapping destination and an unchanged SCC. All three are wave32 dumps registered with check.py and scripts/run_gpu_tests.py, with CPU fixtures in tests/semantic. Measured on the RDNA2 iGPU (gfx1036, RADV, Mesa 27.0.0-devel): all three match their headers bit-for-bit.
YaBulochka
force-pushed
the
feat/fixtures-batch2
branch
from
November 25, 2026 04:40
ae45f4f to
795ece6
Compare
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.
Claimed in the coordination issue as: carried over from the closed original repository (branch
feat/fixtures-batch2); no new claimDepends on: none. Overlaps #364 (
v_swaprel_b32,s_movrels_b32/b64), #171/#853 (cs_w32_pk_rel_ext: packed ints, the rel moves,ds_or/xor_b64), #179 (s_movrels_b64) and #36 (v_mqsad_u32_u8); this PR's fixtures are separate files with their own words and CPU fixtures, so whichever lands first, the other can drop the row it covered.What and why
Three wave32 GPU fixtures for
docs/design.mdrows that had no Vulkan check:cs_msad_mqsad:v_msad_u8andv_mqsad_u32_u8— masked bytes, the sliding 64-bit windows and 32-bit accumulator wraps;cs_swaprel: both M0 fields, ignored M0 bits and a self-swap;cs_movrels:s_movrels_b32/b64, an overlapping destination and an unchanged SCC.Each expected set of eight words is derived in the
.asmheader, registered incheck.py(WAVE32_DUMPS,WAVE32_LANE_DUMPS,CS_DUMPS) andscripts/run_gpu_tests.py(the main table, the 64-bit exclusion and the skip list).tests/semantic/fixtures/disasm/*.sare the generated disassembly fixtures the semantic suite pins; they are the author's hand-written ISA programs, not a dump from the game.tests/semantic/test_msad_mqsad_fixture.pyandtest_rel_addressing_fixture.pyreplay the same words through the translator andspirv_mini_interpand keep the headers and both runner tables in step.docs/design.mdrows for the three ops now name the fixtures.Tested
python3 -m unittest discover -s tests/semantic: 6,175 tests, OK (3 skipped), on CPU in this environment.python3 -m pytest tests/test_shader_checks.py -x -q: 91 passed, 333 subtests passed.python3 tests/semantic/regen_fixtures.py --check: clean (the fixtures match the marked.asmsources).AI-assisted: yes.
Checklist
docs/design.md, with how it was confirmed. (No new rule; the existing rows now name the GPU confirmation.)