shader: map s_bitset1_b32 on a root address high word to the stride-one V# #3702
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3702"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-01T05:09:21Z.
Change
s_bitset1_b32 <root address high>, 16sets bit 16 of the high address word, the same bit as thes_or_b32 <high>, 0x10000thatbyte_descriptor_fieldalready maps toroot_stride_one_high. It now gets the same symbol, so a raw V# built that way reaches the existing stride-one path (word 20xffffffff, word 30x11014fac).s_bitset1_b32does not write SCC, so the compute and mesh code generators leave SCC unchanged for it instead of setting it to 1 as fors_or_b32. Any other bit, the low word ands_bitset0_b32keepunbound numeric SGPR.This is the first refusal of 24 slot 86 mesh requests on a local capture (#3703); they reach later refusals, listed there. Refs #3641.
Verification
Build
releaseat this branch (Windows 10 19045, MSVC 2022, DXC 1.9.2609):The same 25
_hardwaretests fail on this host without this change (Windows 10 without the Agility SDK; NVIDIA RTX 3080 Ti, driver 32.0.16.1047, debug layer on).Controls:
unbound numeric SGPR s27(mesh) ands5(compute).Evidence and follow-up
Source-built words only. The mesh check compiles the
s_or_b32ands_bitset1_b32forms of the existing root SRV read to byte-identical DXIL and checks that a compare before the stride write reaches ans_cselect_b32after it. Bit 15, the low word ands_bitset0_b32are refused. The compute check covers the same on a compute root descriptor. Note:docs/experiments/native-root-stride-bitset1.md.Follow-ups in #3703: mesh scalar loops (design first),
v_mad_f32,idxen offenraw loads.Checklist
AI-assisted.
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-01T08:43:23Z.
Review: APPROVED
Reviewed stride-one root descriptor recognition and SCC preservation. The integrated native_direct_container and native_direct_mesh fixtures passed, including the positive and refusal controls.