Repository navigation
SHADER-678: ds_swizzle_b32 gives 0 for a source lane that is off in EXEC - #5266
undeadhuman37 wants to merge 1 commit into
Conversation
…EXEC Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
The branch starts from I copied only this PR’s The new test file is absent on main, so a tests-only change would retain the explicit compute regressions if desired. For a further translator change, a case that still fails on current main would identify the remaining gap. AI-assisted. CPU interpreter, synthetic inputs. |
|
RTX 4080 hardware A/B for the masked-source swizzle, extending the CPU result above. Windows 11, NVIDIA 621.01, Khronos validation 1.4.357. The same synthetic Both this PR ( |
Kam471
left a comment
There was a problem hiding this comment.
Head ec628ee39. The fix is already on main; do not merge.
- Branch (
ec628ee39, baseec8ec4c9):python tests/semantic/test_ds_swizzle_exec.py-> 3 tests OK. Restoring the parenttools/rdna2spirv.py: 2/3 fail (BITMASK_PERM lane 2: 22 != 0,SWAP lane 0: 8 != 0), so the new test is meaningful. - Main
3faac557bpasses that same test file unchanged: copiedtest_ds_swizzle_exec.pyinto a clean worktree at3faac557b-> 3 tests OK, no translator edit. Main already fixed this in461892759"fix(shader): return zero for inactive swizzle sources" (Nov 22):ds_lane_read()(tools/rdna2spirv.py:4537-4554, ballot -> mask) handles EXEC-off/absent sources andswizzle()calls it (:1725).docs/design.mdalready has ads_swizzle_b32row with those semantics. gh pr view:mergeable=CONFLICTING;git merge-tree --write-tree HEAD refs/remotes/pr/5266also conflicts indocs/design.mdandtools/rdna2spirv.py, so the staleg_shuffleapproach cannot land as-is.git diff --check: clean (irrelevant given the above).
Verdict: close as already fixed on main. The one bit main lacks is the BITMASK_PERM-under-EXEC case (main's SwizzleExecTests covers SWAP and QUAD_PERM with exec 0xdddddddd). If wanted, re-open as a test-only PR that appends those cases to tests/semantic/test_ds_permute.py.
|
Tested
|
Item: SHADER-678 (claimed in #5256; finding from #3381).
ds_swizzle_b32shuffled the register of a source lane that is off in EXEC; RDNA2 returns 0 there, as fords_bpermute.swizzle()now callsg_shuffle(..., zero_inactive=True); the native (non-emulated) path ofg_shufflegot the same ballot/mask schemeds_bpermute_b32uses. The emulated path already supportedzero_inactive.Depends on: none.
Tested: new
tests/semantic/test_ds_swizzle_exec.py(SWAP and BITMASK_PERM under EXEC masks, run in the mini interpreter); 2 of 3 cases fail without the change, all pass with it.compileallok. Full semantic suite was still running when opened. CPU only, not GPU-checked (no GPU/driver used). docs/design.md updated.AI-assisted.
🤖 Generated with Claude Code