Repository navigation
Tests: cs_imm_mask, constants as wave64 lane masks and as 64-bit data (s_ff0_i32_b64 of -1 included) - #1409
Tests: cs_imm_mask, constants as wave64 lane masks and as 64-bit data (s_ff0_i32_b64 of -1 included)#1409intelshadow wants to merge 1 commit into
Conversation
ab82961 to
0bea8a1
Compare
|
Tested 0bea8a1 on Windows x64, AMD Radeon AI PRO R9700, Vulkan 26.11.2 (LLPC). The CPU regression passes for both subgroup sizes. The synthetic cs_imm_mask GPU check passes all eight expected words on the PR. With the same fixture and runner and only the translator restored to c2967a5, it fails; both translations pass spirv-val. AI-assisted. |
|
Tested 0bea8a1 on AMD Radeon RX 6800 (RDNA2, RADV NAVI21, Mesa 26.3.1, Vulkan 1.4.363), Arch Linux container on Linux 7.2.15: pass. Corpus count from my own copy of the game (1.0.2.1) below. Overlap with #1367. #1367 (Vonsek, merged into main at 11:25 UTC; this PR was opened at 11:08 UTC) changes the same
So of this PR's checks, only the This PR's head (0bea8a1)
Corpus count (26,503 shaders, disassembled with main c603b8f's tools; counts only):
My selection is a text match on operand positions, not the translator's own classification. I didn't translate the other 26,146 shaders. AI-assisted (Claude Code). The game files were mounted read-only into a podman container with no network. The disassembly and the translations stayed on my machine. Nothing from them is quoted here. |
|
Tested 0bea8a1 (118 behind main) on two GPUs: Windows 11 Home 10.0.26300, Python 3.14.7, llvm-mc 21.1.8, Vulkan SDK 1.4.363.0, main's harness build (bb2e184, MSVC 14.44),
AI-assisted (Claude Code). No game files. |
0bea8a1 to
70725fb
Compare
|
Thanks @alvaro-marquez-cobos and @EchoTD for the GPU runs, and EchoTD for the corpus count. You're right that #1367 covers most of this PR, and |
…ane ops (wave32 and wave64) The family crosslane_fuzz.py checks on a GPU, checked on the CPU so it can run where the translator tests run. The reference is cf_ref.WaveMachine (FUZZ-8) extended with what it leaves out: v_readlane, v_readfirstlane, v_writelane, ds_bpermute_b32, v_permlane16/x16 (FI = 0 as measured in ItsNotRexed#374), s_bcnt0/1 and s_ff0/1 (b32/b64) and s_not. The translated SPIR-V runs on spirv_mini_interp.run_workgroup, the whole wave in one subgroup, and every dword every lane stores is compared. Known gaps on main are opt-in: --masks-as-data (ItsNotRexed#210) and --permlane-partial (SHADER-74, ItsNotRexed#580). tests/test_wave_diff.py: hand-derived reference cases, canaries and a short seeded run on both wave sizes. Depends on ItsNotRexed#1409 (the default run finds its case on main). AI-assisted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
70725fb to
5af118b
Compare
|
Tested Confirmed the 64-bit immediate fix on Linux RTX 5090 (595.99.02) at
Only word 6 changed. For AI-assisted verification. |
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested
Not run: AI-assisted (Claude Code). |
… (s_ff0_i32_b64 of -1 included) A regression test for ItsNotRexed#1367's constant lane masks and for s_ff0/1_i32_b64 of a negative constant, which read only the low word until 2026-11-22 (s_ff0_i32_b64 of -1 gave 32). Both are fixed on main; nothing else tests s_ff0 of a negative constant. runtime/test/shaders/cs_imm_mask.asm: wave64, exact on any subgroup size, expected 1 100 111 10 60 0 4294967295 64. Registered in check.py and run_gpu_tests.py; tests/semantic/test_imm_lane_masks.py runs it on one 64-wide and two 32-wide subgroups. AI-assisted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5af118b to
5466024
Compare
|
Update: |
…ane ops (wave32 and wave64) The family crosslane_fuzz.py checks on a GPU, checked on the CPU so it can run where the translator tests run. The reference is cf_ref.WaveMachine (FUZZ-8) extended with what it leaves out: v_readlane, v_readfirstlane, v_writelane, ds_bpermute_b32, v_permlane16/x16 (FI = 0 as measured in ItsNotRexed#374), s_bcnt0/1 and s_ff0/1 (b32/b64) and s_not. The translated SPIR-V runs on spirv_mini_interp.run_workgroup, the whole wave in one subgroup, and every dword every lane stores is compared. Known gaps on main are opt-in: --masks-as-data (ItsNotRexed#210) and --permlane-partial (SHADER-74, ItsNotRexed#580). tests/test_wave_diff.py: hand-derived reference cases, canaries and a short seeded run on both wave sizes. Depends on ItsNotRexed#1409 (the default run finds its case on main). AI-assisted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested the test-only head
AI-assisted (Claude Code). |
|
Tested
Counts and pass/fail only; no game data. No code changes. AI-assisted. |
|
Tested 5466024 merged with main 2d3369a on Linux (Python 3.12.16) and Windows 11 (Python 3.13.1): pass.
|
Regression test for constant lane masks. Claimed in #374. AI-assisted (Claude Code). No game files.
This PR started as a translator fix. #1367 and later changes on
mainnow fix all of it, includings_ff0/1_i32_b64of a negative constant, which read only the low word until 2026-11-22 (s_ff0_i32_b64of -1 gave 32). So it is now test-only: nothing onmaintestss_ff0_i32_b64of a negative constant, and this test pins it together with the 64-bit EXEC constants.runtime/test/shaders/cs_imm_mask.asm: wave64, exact on any subgroup size, so it's inWAVE32_DUMPSand runs without--require-wave64. Expected1 100 111 10 60 0 4294967295 64, derived in its header. Word 6 iss_ff0_i32_b64of -1.check.pyandrun_gpu_tests.py.tests/semantic/test_imm_lane_masks.pyruns it across every lane on one 64-wide and two 32-wide subgroups. It passes onmain.The same fixture passed on GPUs in the comments below: AMD Radeon AI PRO R9700, RX 6800, an RDNA2 iGPU, RTX 5070, RTX 5090, RTX 3060 Ti and RTX 5070 Ti. Several of those runs also showed it failing with the old translator.
🤖 Generated with Claude Code