Repository navigation
rdna2spirv: support run-time wave32 s_bfm_b64 width and offset - #8409
LukeOsland1 wants to merge 1 commit into
Conversation
|
Tested 4a1278e on Arch Linux, Python 3.14.10, CPU only: pass — first Linux check. test_wave32_bfm64 7/7 + related bfm suites green. Negative control: base translator → runtime-operand test errors (Unsupported); restored, green again. No game files. AI-assisted. |
|
Tested 4a1278e on Arch Linux, Python 3.14.10, CPU only: pass — first Linux check. new test_wave32_bfm64_data 7/7 + related bfm suites green. Negative control: base tool → runtime-operand test errors; restored, green again. No game files. AI-assisted. |
|
AI-assisted native wave32 hardware check. On On parent CachyOS, CPython 3.14.10, LLVM 23.1.5, SPIRV-Tools 2026.4, NVIDIA GeForce RTX 4080 620.70.06, subgroup 32, Khronos validation on. Used synthetic FSPX metadata with wave32 set. Commands: |
|
Tested 4a1278e vs main 867d922 (tree 8c7963164): tests/semantic/test_wave32_bfm64_data.py Ran 7 OK (re-run here); on clean main the new pair tests fail via the old Unsupported path — not vacuous. Differential mutations: masking with &31 instead of &63 → 3 failures; clamping word 1 at 16 instead of 32 → 6 failures; source md5-clean after each. SCC-preservation and dest-overlaps-source aliasing both have teeth via the s_cmp/s_cselect readback. The docs row's hardware citation names device + method. Flags: NO CI checks reported; overlap with #2956 in tools/rdna2spirv.py/docs/design.md (known trio) — merge-order care. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
|
Tested 4a1278e on Windows 11, Python 3.14.4, no GPU or LLVM: pass. |
|
Tested
I ran only this PR's own test file, not the whole semantic suite. Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting. |
|
Tested
|
Coordination claim. Based directly on main at 6dda063.
A wave32 compute shader with an ordinary SGPR holding the width or offset of s_bfm_b64 previously stopped translation with Unsupported. For an SGPR-pair destination, emit each 32-bit word by intersecting the requested bit range with that word. This uses 32-bit operations, takes the low six bits of both operands, and preserves SCC. Both source values are read before writing the destination pair. Compile-time operands still fold to constants.
AI-assisted with Codex. All fixtures are hand-written.