Repository navigation
test(agc): keep the vertex terminate case's code in static storage - #6789
milescoviello wants to merge 1 commit into
Conversation
agc_driver_graphics stopped on Linux (GCC 13.3, Release) in the vertex case boykopovar#5804 added, with "VOP2 opcode is not implemented". The request it dumped had its 12 code words all zero: the case's lambda took its code span from the function's constexpr local array, and the span saw zeros by the time the recompiler read it. The array is now static constexpr, and the whole test passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Amoenus
left a comment
There was a problem hiding this comment.
Independently validated exact head b88591f on Ubuntu 24.04 / GCC 13.3 Release: agc_driver_graphics passes 3/3 fresh CTest processes (maximum4.40s). Unmodified main eb901bcf4 fails3/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 Recompile matches 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.
|
Thanks for checking it on both platforms, and for the instrumented run on #6792. I added both to the description. AI-assisted: yes |
MarcZX10
left a comment
There was a problem hiding this comment.
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.
|
@milescoviello Main 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. |
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 onmaineb901bc and 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, andmaineb901bc fails 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 Linux GCC13.3: agc_driver_graphics reports VOP2 for an all-zero vertex request #6792🤖 Generated with Claude Code