Repository navigation
Conversation
|
Independent check — pass (CPU only, no game files). Environment: Windows 11, CPython 3.15.2.
AI-assisted (Devin). |
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 62bfda4b9 on Windows 11: pytest tests/test_spirv_opt_decorations.py -q -> 6 passed, 11 subtests passed; git diff --check clean.
The SPIR-V optimizer now keeps the targets of grouped decorations (a multi-target OpDecorate/OpMemberDecorate group) instead of dropping the group when it rewrites one member; the added cases cover a grouped decoration with several targets, the single-target form and the unchanged path. No blocking issue.
|
Retail-derived validation at I selected eight retail listings per stage at evenly spaced ranks by unoptimized module size, including the smallest and largest, and translated them with this head and wave64 emulation. Of the 40, 33 had at least two direct
For reachability, I separately walked instruction boundaries in all 26,503 unoptimized SPIR-V binaries from my existing 1.0.2.1 translation at |
kacper-serewis
left a comment
There was a problem hiding this comment.
At 62bfda4 the scratch integration with #5064 and #5150 passed all 24 optimizer tests. A two-group control preserved both live decorations, removed the dead target, passed Vulkan 1.2 validation, and preserved four interpreter output words. Both builds produced identical assembly for all 32 cached modules. Those modules had no grouped decorations.
AI-assisted independent review.
|
Checked
The five failures are not from this PR. I ran the same suite on |
|
Tested
No game files, no GPU. AI-assisted (Devin). |
Problem
The standalone SPIR-V optimizer can delete a value while leaving that ID in an OpGroupDecorate application. The resulting module fails validation. Group-decorated live values also lack the protection already given to directly decorated values. Direct OpDecorate and OpName cleanup additionally misses legal tab-separated instructions.
Changes
The regression suite includes an equivalent grouping of decorations from an actual synthetic translation. This does not claim that the translator currently emits decoration groups or that this was observed in a game corpus.
Validation
Base: upstream/main 3faac55.
CPU-only validation; no GPU or game-file testing. All inputs are synthetic.
Coordination: BUILD-1587, claimed in #5032 (comment) and continued on #5156. Tab-separated annotation cleanup was recorded in #5032 (comment).
AI-assisted: yes.