Repository navigation
Conversation
Kam471
left a comment
There was a problem hiding this comment.
Built and ran at 3698466ea on Windows 11, RTX 5070 Ti:
tests/semantic/test_s_movreld.py-> 10 tests, OK;test_salu_movrels.py-> 6 tests, OK;git diff --checkclean.- GPU:
run_gpu_tests.py --filter movreld-> 1/1 passed,cs_w32_s_movreld->3405691583 286331153 572662306 42 3735928559 305419896 3735928559 2290649224; translator 1/1 +spirv-val.
s_movreld_b32, s_movreld_b64 and s_movrelsd_2_b32 are now implemented (the SGPR destination indexed by M0, the pair and the two-field _2 form), with the wave64-halves and shader-meta handling updated and the GPU fixture pinning the words. No blocking issue.
|
While checking which GPU fixture still needed testing, I found an earlier open implementation of all three instructions. Vonsek claimed the same three relative SGPR writes on Nov 22 at 18:03 UTC. The claim linked here was on Nov 23 at 08:51 UTC. #2796 already checks the M0 source/destination fields on RDNA2 in wave32 and wave64, and its translated pixel fixture passes on AMD and NVIDIA. The compute fixture |
|
Tested 3698466 on AMD Radeon(TM) Graphics (32.0.21043.5001) and NVIDIA GeForce RTX 4090 (32.0.16.2101), Windows 11: pass. I built the synthetic compute fixture with The relative-write, relative-read, wave64 analysis, and shader metadata suites pass 10, 6, 101, and 19 tests respectively. On merge base 3faac55, the head's relative-write suite reports 13 errors across 10 tests. The base translator rejects the new instructions. The hardware runs execute the translated SPIR-V. They do not independently measure native RDNA2 instruction semantics. AI-assisted. |
|
Tested CPU side: The fixture ran at the native width (no 32-lane pin), so the three new scalar relative-move forms are word-exact on GCN4 as well as on the RDNA2 measurement target. |
|
Tested 3698466 on Intel UHD 630 (Coffee Lake GT2), Mesa 25.2.8 ANV, Ubuntu 24.04: the new fixture cs_w32_s_movreld passes 1/1 with LEONIDA_VK_DEVICE=Intel (words 3405691583 286331153 572662306 42 3735928559 305419896 3735928559 2290649224), and a nonexistent device name fails with "no Vulkan physical device matches", so the filter applied. tests/semantic test_s_movreld and test_salu_movrels pass (16 tests). The full GPU suite gives 155/218 passed, 61 skipped, with only cs_fmt_int_narrow and cs_signed_zero_nan failing; against the recorded main 3faac55 run on this GPU (154/217, 61 skipped, the same two failures), the extra pass and extra total match the one new fixture. I did not rerun main. AI-assisted. |
|
Independent check — PASS (Windows 11, NVIDIA RTX 5090, driver 617.42, Vulkan SDK 1.4.363.0).
Doc row documents the conservative cache-clearing + lane-mask bail accurately. AI-assisted (Devin); no game files. |
|
Tested 3698466 on AMD Radeon 610M (RADV, Mesa 26.2.6, subgroup 32..64), Linux: the new fixture cs_w32_s_movreld passes 1/1 with LEONIDA_VK_DEVICE=RADV (words 3405691583 286331153 572662306 42 3735928559 305419896 3735928559 2290649224, the same words I got on an Intel UHD 630). tests/semantic test_s_movreld (10 tests) and test_salu_movrels (6) pass, and tests/test_translate.py gives 598 passed. The full tests/semantic run (6255 tests) has failures=3 errors=2, all five in test_loop_ballot_barrier, the same module that fails on main 98fa503 in an earlier run on this GPU. AI-assisted. |
|
Tested
One note: the PR description stops after "SOP1 opcodes", so it doesn't say what was tested, on which GPU, or that it was AI-assisted, which CONTRIBUTING.md asks for. No game files. (AI-assisted test run.) |
|
Tested
No game files, no GPU. AI-assisted (Devin). |
3698466 to
a849b35
Compare
|
Tested a849b35 on Steam Deck LCD (Jupiter), AMD Custom GPU 0405 "Van Gogh", RADV Mesa 26.2.0-devel (git-5c65d4fc31), Vulkan 1.4.350, SteamOS 3.9.5 (holo), kernel 7.2.7-valve2-2-neptune-72-g31504582a073.
No runtime C++ changes; translator/tests/shader test assets updated. AI-assisted (OpenCode). |
|
Tested a849b35 (CPU part only), Windows 11: pass.
Setup: Windows 11. GPUs are an AMD Ryzen 7 9800X3D iGPU (RDNA2 gfx1036, driver 26.11.2, subgroup 32..64) and an RTX 4070 Ti SUPER (NVIDIA 621.14, subgroup 32). Each PR was tested in its own worktree with:
Baseline is main
The NVIDIA failure is |
a849b35 to
bc4468a
Compare
|
Rebased cleanly onto \origin/main\ (\1cc6e3c12, new head \�c4468aea), resolving merge conflicts in Re-verified after rebase:
AI-assisted (Gemini 4 Neon). |
|
Tested
Counts and pass/fail only; no game data. No code changes. AI-assisted. |
bc4468a to
12e0ac0
Compare
|
Rebased cleanly onto latest \origin/main\ (\ |
|
Tested 12e0ac0 merged with main 28f8653 on Linux/Python 3.12.16: pass. The merge is clean; tests/semantic/test_s_movreld.py (10 tests) and tests/semantic/test_salu_movrels.py (6 tests) pass. Negative control: with tools/rdna2spirv.py, tools/shader_meta.py and tools/wave64_halves.py reverted to main, test_s_movreld.py reported 13 errors, but test_salu_movrels.py still passed (so it does not discriminate). The GPU runtime checks (check.py, run_gpu_tests.py) were not run. |
|
Tested MSVC (VS 18) Vulkan test programs built from
Every module translated and passed No game files. AI-assisted (Claude Code). |
Claim: #5032 (comment)
Summary
Implements the 3 standard AMD RDNA2 relative SGPR write instructions (SOP1 opcodes