shader: compose ballot lowering with the SPIR-V address window #774
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!774
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/774/head"
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?
@Jess-Doit on GitHub · 2026-11-23 02:10 UTC · original
Jess-Doit:fix/spirv-window-ballot→main· +36 −5 · 3 files · 1 commits · merged 2026-11-23 02:24 UTCChange
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.