Repository navigation
rdna2spirv: accept ds_swizzle_b32 with offset:0 / omitted offset (SHADER-716) - #5101
kotekompotek wants to merge 1 commit into
Conversation
|
Tested At The PR's equivalence test compares against quad permute. LLVM encodes that mode at 0x8000; the omitted offset defaults to zero, which selects bitmask mode. Please lower the zero pattern as a broadcast from lane 0 within each 32-lane group and test with distinguishable input values across quad boundaries. The observed words are from Vulkan translation; the encoding reference supplies the expected behavior. LLVM modifier syntax and LLVM encoding definitions. AI-assisted verification. |
|
Tested 9f6cdc1 on Linux (Ubuntu 24.04, Python 3.12.3), CPU only, no game files: pass.
No build is involved, since the PR changes only tools/rdna2spirv.py and a Python test. AI-assisted. |
|
Confirming @tylerstraub's result on the CPU side at
Overlap: #4177 ( CPU only, Windows 11, Python 3.12. No game files. AI-assisted (Claude Code). |
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 9f6cdc175 on Windows 11: tests/semantic/test_ds_swizzle_offset0.py -> 2 tests, OK; git diff --check clean.
ds_swizzle_b32 with offset:0 or an omitted offset is now accepted as the identity swizzle instead of being refused, matching LLVM's printing and the ISA's default; a non-zero offset and the other forms are unchanged. The new two-case test covers the printed and omitted forms and the still-refused malformed one. No blocking issue.
|
Code read + CPU tests, 9f6cdc1: pass for this change, with the caveat that the suite as a whole is not green on
So: nothing new from #5101; once #3995 lands, a clean branch should show only the toolchain-dependent one. |
|
Tested
|
Implements SHADER-716:
Gen.swizzle(tools/rdna2spirv.py), treatds_swizzle_b32withoffset:0/offset:0x0or omittedoffset:asQUAD_PERM(0, 0, 0, 0)instead of raisingUnsupported("ds_swizzle pattern").swizzle(...)remainUnsupported.tests/semantic/test_ds_swizzle_offset0.py(2/2 OK).python -I tests/semantic/test_ds_swizzle_offset0.py -v(2/2 OK)git diff --check(clean)