test(agc): keep the vertex BDA shader code static #6889
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6889"
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 adriadam10 on 2026-10-16T16:33:38Z.
What
agc_driver_graphicshas failed on every Linux main build since #5804 withVOP2 instruction requires 32-bit literal. The request the test serialized on the failure holds a vertex shader at0x10000whose 12 code dwords are all zero. That shader isvertexBdaCode, aconstexprlocal array that the[&]lambdavertexWordsuses through a span.CI builds with GCC 13.3 (Ubuntu 24.04). With that compiler the array is never emitted: compiling
Graphics.cppwith the same flags inubuntu:24.04, the object has no copy of its words, and its 10th word0xf80008cfappears nowhere. GCC 16 keeps it in.rodataand the test passes, on RADV and on CI's lavapipe. The fix makes the arraystatic constexpr, so it has static storage and the lambda doesn't capture it.Tested
ubuntu:24.04, CI's flags): the object holds the full 12-word array after the change and none of it before.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)