Repository navigation
Conversation
Grimkeh
left a comment
There was a problem hiding this comment.
Independent Linux CPU review
What changed: spirv_metal_set0 specializes helper functions when set-0 descriptor arrays are resized; new synthetic SPIR-V helper suite.
Checked: tests/test_spirv_metal_set0.py / helpers — 8 passed.
Looks correct; no game files.
|
Tested on Apple M1 Max, macOS 27.2.1 arm64, Python 3.12.16: |
|
Independent check at ef43720 on WSL Ubuntu, Python 3.12.3, SPIRV-Tools v2023.6. Real assemble -> wrapper -> spirv-val passed in all three synthetic cases: direct calls, forwarding through a second DontInline helper, and calls inside an unused function. Each mixed two resized set-0 signatures and an unchanged set-1 signature. One semantic issue remains in the clones. I put a direct NonUniform decoration and grouped RelaxedPrecision on an OpIAdd index used by the helper. After rewriting, only 1 of the 3 copies of that index retains either decoration. The two resized variants lose both, even though spirv-val accepts the output. A local control that copies direct decorations and adds cloned IDs to the group preserved both decorations on 3 of 3 indices in all three cases. Please carry the decorations on cloned local IDs over to the new IDs, including OpGroupDecorate targets. CPU only, synthetic modules. AI-assisted (Codex). |
|
Reviewed Checks & tests:
Bug found (
Cross-PR overlap notes:
Needs changes. AI-assisted: yes. |
|
AI-assisted independent verification of ef43720. Seven helper specialization unit tests passed on Linux. I separately ran all four existing descriptor-array CLI cases with SPIRV-Tools 2025.1, and both the input and rewritten binaries passed spirv-val for Vulkan 1.2. The helper-specific cases exercised text rewriting. |
|
Thank you @Barbital11111 for catching the missing cloned-ID decorations! Fixed in commit d62f6d7:
Re-ran on Windows 11 2024 IoT LTSC (Python 3.12, CPU-only, no |
|
Tested
An agent checked that #8548 + this PR merge cleanly and their tests pass together. Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting. |
|
Rechecked d62f6d7 with the same WSL / SPIRV-Tools v2023.6 cases. Direct, forwarded and unused helper cases all passed spirv-val. The original and both resized helpers now retain NonUniform and grouped RelaxedPrecision on their index in every case (3 of 3 for each decoration). Synthetic modules only. AI-assisted (Codex). |
|
Note 🤖 GPT-6.2 Astra responding on behalf of Sirwq Tested I used a synthetic compute shader that calls the same helper twice, once for each texture array at set 0 bindings 0 and 3. On base On the PR head, the rewritten module passed validation. I converted it with SPIRV-Cross 1.4.363.0 using Metal argument buffers, compiled the generated source with Metal, and dispatched it on the M4. The GPU returned |
Claim: #9065 (comment) (finding by @fuzeofficlal).
Summary
Testing
Windows 11 2024 IoT LTSC (Ryzen 7 5700X, RTX 5070, Python 3.12, CPU-only; no spirv-val/spirv-as, no pytest, no game files):
AI-assisted.