test(agc): keep the vertex terminate case's code in static storage #6789
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6789"
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 boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-16T12:07:32Z.
What
Now that
mainbuilds on Linux again (#6784),agc_driver_graphicsfails there 3 of 3 (GCC 13.3, Release):It stops in the vertex case #5804 added to
orderedPixelShaderTests. The request it dumps is a vertex program at 0x10000 with 12 code words, all zero. The case'svertexWordslambda builds its request from the function'sconstexprlocalvertexBdaCode, and by the time the recompiler read the span the words were zero. Sinceagc_driver_graphicsruns its cases in sequence, every case after this one is skipped as well. Amoenus reproduced it onmaineb901bcf4and filed it as #6792.How
vertexBdaCodeisstatic constexpr, so the span points at storage that lives for the program.Tested
Linux (Ubuntu 24.04, GCC 13.3, Release), RTX 4070 Ti, NVIDIA 595.99.
agc_driver_graphics: withmain'sGraphics.cppit fails 3 of 3 with the line above. With this change it passes 3 of 3 (Graphics validation tests passed), including the vertex terminate case.@Amoenus validated this head on Ubuntu 24.04 with GCC 13.3:
agc_driver_graphicspasses 3 of 3, andmaineb901bcf4fails 3 of 3. Their instrumented run on #6792 shows the 12 literal words nonzero when read directly, and all 12 zero through the request's span beforeRecompile. On Windows 11 with WinLibs GCC 15.2 the same CPU tests pass 3 of 3 with this change.Neither of us has confirmed why the span saw zeros with the local array. #5804's own CI ran before
mainstopped building on Linux.Not checked on Windows, macOS, on AMD or on a console.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)agc_driver_graphicson Linux. Closes #6792🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-16T12:38:03Z.
Review: APPROVED
Independently validated exact head
b88591fd44on Ubuntu 24.04 / GCC 13.3 Release:agc_driver_graphicspasses 3/3 fresh CTest processes (maximum4.40s). Unmodified maineb901bcf4fails3/3, and restoring the original source after diagnostic instrumentation reproduces3/3 failures again.The pre-call observation requested in #6792 shows all12 direct literal reads nonzero but all12 request-span reads already zero; serialization before
Recompilematches its exception payload. Giving this immutable fixture literal static storage corrects the observed failure without changing production code or assertions. The underlying compiler/storage explanation remains unconfirmed.With this one-line change cherry-picked onto our retained integration65d979b03, the affected target builds and the same CPU graphics group passes3/3 each on Windows11 / WinLibs GCC15.2r7 and Ubuntu / GCC13.3 (maximum6.83s). Linux's unavailable heap-mirror cases remain excluded from coverage. These are CPU/mock tests, not GPU or title validation. Unrelated GPU matrices retain their earlier source pins. AI-assisted review: Codex; builds and tests run locally.
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-16T12:39:41Z.
Thanks for checking it on both platforms, and for the instrumented run on #6792. I added both to the description.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T13:19:57Z.
Review: APPROVED
The one-line static-storage change matches the reproduced failure: the literal array is nonzero, but the request span was already zero before Recompile. The exact head passes the focused graphics test 3/3 on Linux, with an independent Windows/Linux report and a negative control against main. Current conventions, eligibility, intake and report checks pass; platform build jobs are skipped by repository policy. The underlying compiler/storage explanation remains unconfirmed, as the PR states.
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-16T16:55:01Z.
@milescoviello Main
66e290f1c04a6aa08271f106d0dc83ba06561bfcnow contains #6889, and I verified its complete one-line patch is identical to this PR's change. Plain main66's actual CPU graphics target builds and passes3/3 on Ubuntu24.04 WSL2 / GCC13.3 / Release (max3.29s); the journal control passes1/1. The two unavailable heap-mirror checks per graphics process are excluded.I have closed our observed-failure report #6792 as resolved and updated #5939's CI-blocker report. This PR is now superseded at the source level; your original negative controls and validation remain useful evidence. This is selected CPU/mock coverage, not a new full-suite or GPU result. AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-16T17:00:35Z.
Superseded by #6889, which merged the same
static constexprchange, so I am closing this. Thanks @Amoenus for checking that the patches are identical and closing #6792, and @MarcZX100 for the review.AI-assisted: yes
Pull request closed