upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/d3d12_command_objects.md
diff options
context:
space:
mode:
author邓伟平 <dengweiping@cecw.net>2026-11-24 09:48:23 +0800
committer邓伟平 <dengweiping@cecw.net>2026-11-24 09:48:23 +0800
commit1b15cd23164b509c60ddc40f1b3382c65278a091 (patch)
treeb28c6dd702d39b43457148460eb00542b21546ab /docs/d3d12_command_objects.md
parent30daa6958bd08d4df402cdd0cb6d021ef072cd9d (diff)
rdna2spirv: a computed value written to EXEC sets the lanes of its bits (SHADER-1264)
`s_lshl_b32 exec_lo, 1, s5`, `s_add_u32 exec_lo, ...` and `s_bfm_b32 exec_lo, ...` reached EXEC through the generic SALU destination path, which tested the value for non-zero. A computed 32-bit value is not a lane mask: lane L takes bit L of it, so `s_lshl_b32 exec_lo, 1, s5` sets lane 3, not all 32. Gen.exec_bit takes that bit, and Gen.dst now routes the wave32 `exec`/`exec_lo` writes and the wave64 `exec_lo`/`exec_hi` writes through it. The other paths into EXEC (mask_dst, put_mask, exec_half_write's constant form, s_mov_b32's mask_src, the saveexec/wrexec forms) already give a per-lane mask or bit and are unchanged; a real mask (0 or ~0 per lane) answers the same under bit extraction. The words are the GPU's, already recorded in runtime/test/shaders/cs_w32_exec_computed.asm and cs_w64_exec_computed.asm (RTX 5070), and tests/semantic/test_exec_computed.py replays them through the CPU interpreter. docs/design.md's constant-lane-masks row records the rule.
Diffstat (limited to 'docs/d3d12_command_objects.md')
0 files changed, 0 insertions, 0 deletions