test(agc): read lane 63 of the vertex index in the registered workgroup fixture #4177
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4177"
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 oneandonlydean on 2026-10-12T00:46:10Z.
What
agc_driver_prepared_shaders_registered_workgroup_syncfails onmainwithexpected preparation failure, on every host whose subgroup is narrower than 64 lanes: the Linux CI job on llvmpipe (2 of 923 in run 38182978082) and an RTX 4090.The test came with #2261. Its fixture reads lane 63 of
v0in a wave64 vertex program, and the last registration in the test expectsv_readlane_b32 of lane 63 is outsidewhen preparation is synchronous. The program never writesv0. #3546, merged ten minutes later, builds av_readlane_b32of a lane the host subgroup does not hold as 0 when the value is 0 in lanes 32-63, so that registration now succeeds. The test passes at9d5c6afc(the parent of the #3546 merge) and fails ate44b7cf7(the merge).The fixture now reads lane 63 of
v5, the vertex index the vertex entry writes, which is not 0 in the upper lanes, so the read still throws on a narrower subgroup. One operand word changes (0x00017f00to0x00017f05); no code outside the test changes.Tested
Linux (CachyOS, GCC 16.2.1), Release,
BUILD_TESTING=ON,ANYPS5_ENABLE_SPIRV_TOOLS=ON, NVIDIA RTX 4090 (610.57.04, 32-lane subgroup), onmain7a84b222:agc_driver_prepared_shaders_registered_workgroup_syncfails onmainwithexpected preparation failureand passes on the branch.ctest -R agc_driver_prepared_shaders: 9 of 9 pass on the branch. The mesh path of the same fixture still passes (registered NGG wave64 preparation passed; subgroup=32).tools/check_conventions.py --base 7a84b222passes.Not run on llvmpipe here; the CI job covers it.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by AlxcBTW on 2026-10-12T00:46:44Z.
Thanks for catching this, it's a side effect of #3546. That change deliberately builds a
v_readlane_b32of a lane the host subgroup doesn't hold as 0 when the value is provably 0 in lanes 32-63. The fixture'sv0is never written, so the read became legitimate and the expected refusal disappeared. Readingv5(the vertex index, non-zero in the upper lanes) restores what the test meant to check, and the one-word change matches the encoding (VSRC00 → 5). LGTM.AI-assisted: yes (Claude Code)