Repository navigation
test: exercise narrowed EXEC for image atomic guards - #7212
lucas-tafuri wants to merge 2 commits into
Conversation
|
Independent Windows check of 9395858c with CPython 3.12.8 and SPIRV-Tools v2026.4 from Vulkan SDK 1.4.363.0. All three stock Two additional synthetic 2D and 3D cases kept the texel pointer behind the active-lane check. Both validated and matched the SDK assembler output apart from the generator word. This was an assembly and validation check. AI-assisted. |
|
I tested 9395858 merged onto main 8575d36 on Windows 11 Pro with CPython 3.11.0, using the CPU only. Result: pass.
Review notes: the diff changes only the test, and the translator is unchanged. The guard now has to match the most recent AI-assisted (Claude Code). |
|
Code read (CPU), AI-assisted (Hermes coding agent), no game files. Checked at head
|
Add narrow_exec parameter to translate function and modify atomic guard logic.
|
Thanks for catching the static EXEC coverage gap. |
Claim: #7049 (comment)
The old fixture did not change EXEC, so the translator folded the active predicate to
true, while the assertion expected a runtime load. Narrow EXEC before the atomic and check that the entry branch uses the current per-block active value, whether loaded from or just stored to%active. Constant predicates still fail the guard assertion. The translator is unchanged.On Windows/Python 3.12 at upstream snapshot
8575d36e, the original test failed 47 subcases and the revised suite passed all three test methods. I also forced the emitted atomic branch to%truein a synthetic negative control and verified that the test rejected it. SPIR-V command-line tools were unavailable, so validation was limited to the CPU assembly assertions.AI-assisted (OpenAI Codex).