Repository navigation
Conversation
docs/design.md marks v_swaprel_b32 and the relative SGPR reads not GPU-verified: CPU-checked (and v_swaprel_b32 measured on hardware), but the translated SPIR-V never ran on a GPU; s_movrels only appears in a comment of cs_movrelsd_2.asm. cs_relidx_ext.asm runs one lane through v_swaprel_b32 with both M0 fields and the ignored M0 bits set, a self-swap, s_movrels_b32 and s_movrels_b64 with M0 from a literal, a destination overlapping the source, and SCC left unwritten. The eight expected words are derived in its header from the rows. Registered in check.py and run_gpu_tests.py next to cs_lds_xchg64_ext; both rows note the GPU check.
This was referenced Nov 24, 2026
Contributor
|
Author here: taken over in #364, rebased on |
Contributor
|
Tested on Linux, merged onto GPU: NVIDIA GeForce RTX 2070 SUPER (Turing, subgroup 32), proprietary driver 620.70.06, Fedora 44, llvm-mc 22.1.8, SPIRV-Tools 2026.1.
New fixture The only failures in both runs are the known AI-assisted: yes (Claude Code ran the build and tests on my machine; numbers are the runners' own output). |
Collaborator
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.
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):docs/design.mdmarksv_swaprel_b32and the relative SGPR reads (s_movrels_b32,s_movrels_b64) Not GPU-verified: both translations are CPU-checked (andv_swaprel_b32was measured on hardware), but the SPIR-V the translator emits had never run on a GPU.s_movrelsonly appears in a comment ofcs_movrelsd_2.asm.runtime/test/shaders/cs_relidx_ext.asm(one lane, laid out likecs_lds_b64_cmpst.asm):v_swaprel_b32 v10, v11, M00xFC02FC03M0[25:16]= 2,M0[9:0]= 3, other bits ignored: v12 and v14 swap0x1414,0x1212v_swaprel_b32 v11, v12, M00x100000xABCDs_movrels_b32 s30, s20, M0 3s[20+3]0x67s_movrels_b64 s[30:31], s[20:21], M0 20x66,0x67s_movrels_b32 s20, s20, M0 10x65s_movrels_b32betweens_cmp_eq_u32 0, 0ands_cselect_b32 7, 90x7The words are derived in the
.asmheader from the rows. Registered incheck.pyandscripts/run_gpu_tests.pynext tocs_lds_xchg64_ext(#9761). Both rows keep their marker and add a "GPU-checked by" note; thes_movrelsnote says the lane-mask case (SHADER-284) is not covered.Tested on an AMD Radeon RX 7900 XT (RADV NAVI31, Mesa 26.3.1, subgroup 32..64), Artix Linux, llvm-mc 23.1.5, test programs rebuilt from this branch's base
2d53a8055:cs_relidx_extpasses with all eight words exact, native and withLEONIDA_W64_EMULATE=1.scripts/run_gpu_tests.pysuite: the only failures arecs_imgload_tfe,cs_imgload_d16_tfe,cs_w32_exec_computed,cs_w64_exec_computedand the knownms_wave_info_s3flake (#6172), and the four fail the same way on a clean worktree ofmainon this card.check.py,run_gpu_tests.py,design.mdor the shader fixtures: the same failure set as a clean worktree of the merge base (28, environment-only on this machine). The branch adds 2 passing tests and 12 subtests.Synthetic fixture only, no game files. AI-assisted (Claude Code).