Repository navigation
GPU test cs_w32_movrels64: s_movrels_b64 (OLD-9913) - #1447
LouisRiverstone wants to merge 4 commits into
Conversation
- GPU test cs_w32_movrels64: s_movrels_b64 - cs_w32_movrels64: an even-aligned overlap pair (LLVM 22+ rejects s[21:22]) - test_movrels64_fixture: runs under python -I Carried over from old-pr/9913 (old upstream PR 9913), rebased on main.
|
Tested
AI-assisted; synthetic fixtures only, no game data. |
|
GPU test on an NVIDIA Ada card, for the record: this passes on an RTX 4090.
Only the filtered fixture(s) were run for this PR, not the full suite or ctest; the full-suite baseline for this card on |
# Conflicts: # runtime/test/shaders/check.py # scripts/run_gpu_tests.py
|
Verified by OreoFR Run 1 (lot 4)
Run 2 (lot 4 bis)
All runs
AI-assisted (Claude Code, Claude Opus 5.5). |
…ew fixtures in run_gpu_tests.py
|
Ready for testing: with today's merge of AI-assisted (Claude Code). |
|
Independent run of #1447 (a GPU test fixture, run on a real GPU through Vulkan; no game, gta6rt not run).
Commands: build
|
DIGITALWORLD-PL
left a comment
There was a problem hiding this comment.
Independent RTX 5090 check of #1447 at ee3e77a86e9d7ebb0251c7b29d6d6a3811d7caad.
The original cs_w32_movrels64.asm passed from source on Windows build 26300, RTX 5090, driver 621.01. LLVM 23.1.6 assembled the gfx1013 wave32 instructions. The translated SPIR-V passed spirv-val v2026.4 for Vulkan 1.2. The filtered GPU runner passed 1/1 with zero skips, the targeted check.py dispatch returned the same eight words, and all five fixture CPU tests passed.
I would change two parts of the fixture before treating it as RDNA2 conformance coverage.
- Lines 22 and 34 set
M0=1fors_movrels_b64. AMD specifies an even index for this operation. Four expected words depend on odd-offset reads:out[0,1,5,6]. The partial overlap at lines 34–35 also depends on that odd offset. The NVIDIA result establishes how the translation behaves. AMD RDNA2 §12.3, SOP1 opcode 47 · Fixture - The fixture saves SCC for
out[7]immediately afters_movrels_b32. The lastb64runs after that capture. Forcing the CPU translator to set SCC to 0 or to 1 after everyb64leaves all eight original words unchanged. SCC sequence
I tried a local variant with offsets 2, 4 and 6, with the latter two supplied by v_readfirstlane. It sets SCC separately to 0 and 1 and samples it directly after each of the first two b64 moves. The RTX returned 5EED0222 5EED0333 5EED0444 5EED0555 5EED0666 5EED0777 00000000 00000001. In the CPU mutation test, forced SCC=0 changes only out[7] and forced SCC=1 changes only out[6]. Proposed fixture patch on this PR head.
Would you be open to using those even-index and SCC cases for the b64 fixture?
AI-assisted preparation, verification and review using OpenAI Codex (GPT-6.2 Astra). Synthetic input throughout.
aslan2142
left a comment
There was a problem hiding this comment.
Conflicts with main in scripts/run_gpu_tests.py, with failing stale CI. Please rebase onto current main to resolve the conflict and trigger a fresh green CI pass.
(AI-assisted review.)
|
Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime ( |
Claimed in the coordination issue as: OLD-9913 (#14 (comment))
Replaces the carried-over draft #179. I'm the original author of old upstream PR 9913.
What and why
An old upstream PR merged
s_movrels_b32/s_movrels_b64with CPU-only checks, and thecs_w32_pk_rel_extfixture covers only theb32form. This adds a GPU fixture,runtime/test/shaders/cs_w32_movrels64.asm:s_movrels_b64pairs with an M0 set at run time, an overlapping source and destination pair (even-aligned, because LLVM 22+ rejectss[21:22]), and SCC kept. The fixture is wired intocheck.pyandscripts/run_gpu_tests.py. Its disassembly is intests/semantic/fixtures/disasm/and is checked bytests/semantic/test_movrels64_fixture.py.The old branch's final diff, applied on current
mainas one commit. It applied cleanly.Tested
python -I scripts/run_gpu_tests.py --filter cs_w32_movrels64: PASS with llvm-mc 21.1 and with llvm-mc 23. Words0x5EED0111 0x5EED0222 0x5EED0444 0x5EED0555 0x5EED0555 0x5EED0111 0x5EED0222 1, as expected.python -I tests/semantic/test_movrels64_fixture.py: OK.python -I scripts/run_semantic_tests.py tests/semantic: 477 files, 6228 tests, 0 files failed.The old PR was also checked on real GPUs by other people (RX 6800, RTX 3080 Ti, RX 9070 XT, RTX 4090, RTX 5090, Steam Deck and others), on the branch as it was then.
GPUs tested: llvmpipe (Mesa, LLVM 21.1.8) on Linux under WSL2
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator rule changes)