mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #85] [CLOSED] Tests: GPU coverage for v_swaprel_b32 and s_movrels_b32/b64 #137
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#137
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/85
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/9813📝 Commits (1)
2057c0eTests: GPU coverage for v_swaprel_b32 and s_movrels_b32/b64📊 Changes
4 files changed (+89 additions, -7 deletions)
View changed files
📝
docs/design.md(+2 -2)📝
runtime/test/shaders/check.py(+5 -2)➕
runtime/test/shaders/cs_relidx_ext.asm(+76 -0)📝
scripts/run_gpu_tests.py(+6 -3)📄 Description
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).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.