shader: compose ballot lowering with the SPIR-V address window #768
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/774"
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 Jess-Doit on 2026-11-23T02:10:30Z.
Change
Check the reserved
%x2w_prefix against the input assembly. Give address temporaries a separate%x2w_address_prefix so a source pointer name cannot collide with a ballot temporary. The adapter rejects reserved IDs in the input and conflicts with descriptor sets 1 and 2.Verification
Tested
9958958on Windows 10 22H2 build 19045.6456 with the Vulkan SDK 1.4.363.0 tools. The combined fixture reproduced the original reserved-prefix error. The renamed-pointer case then reproduced a duplicate-ID error before the separate prefix was added. The public CLI now validates both inputs and both lowered outputs. Existing rejection cases and both reserved-ID controls passed.App-local Agility 1.620.2 and WARP 1.0.22 matched all 16 words in each of the eight address-window cases for the plain shader and both combined variants. Renaming the pointer produced byte-identical logical SPIR-V. Clearing the ballot bit caused the expected mismatch at word 11 (
eca86420expected,00000000observed). The debug layer reported zero warnings and errors. The GTX 1060 and Windows 10 in-box WARP both returned the existing capability skip77.To repeat the combined readback with DXC and an app-local WARP build:
Evidence and follow-up
The regression extends the existing MIT-licensed
subtract.spvasmfixture with a ballot read that controls the stored value. It runs in the existing offline SPIR-V validation job. The experiment notes describe the combined case.Checklist
AI-assisted.