Repository navigation
test(agc): cover a buffer descriptor in user SGPRs whose base and payload move - #9853
Conversation
|
This is a useful targeted regression case for #9755, and the current behavior is described transparently. The PR is 66 commits behind current |
|
The test change is confined to |
…load move Two draws read a buffer descriptor held directly in the pixel stage's user SGPRs. The second draw has another base and another payload, must read the new payload and is a data-only hit that rebuilds the pixel stage. Runs with and without APS5_VERIFY_DRAW_DATA_HITS. Written with AI assistance. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
7b2f7b9 to
46f4310
Compare
|
Rebased onto Thanks. I reran both |
|
Reran Environment:
The only VUID on both sides is Not covered: real GPU hardware (only llvmpipe), macOS/MoltenVK runs are in my earlier comment. |
…w_pipeline and _refresh run with APS5_NO_DRAW_PREP=1 like the draw cache reuse twins: upstream boykopovar#9853's moved-pointer case counts the pixel stage compile of each draw, and our draw prep thread compiled it first in 2 of 12 runs (0 of 12 without draw prep)
What
A regression test for #9755, as MarcZX10 suggested there: two draws whose buffer descriptor (V#) sits directly in the pixel stage's user SGPRs, with a different base and a different payload on the second draw.
dataStagesCompiledgrows). The assertion documents currentmainbehaviour, so a future fix for perf(agc): draw cache rebuilds shader stages when only per-draw buffer bases in user SGPRs move (Vampire Survivors late game) #9755 flips it to "reused".APS5_VERIFY_DRAW_DATA_HITS=1(the_verifyCMake test).Test only; no driver change. It is the case Vampire Survivors (PPSA21703) hits about 150k times per 10 s late in a run, per #9755.
Tested
Linux: Ubuntu x86-64 chroot in a Lima VM on macOS (Apple Silicon), at
maina6646f8 plus this change. The new case passes inDrawDataHitUserWordsand inDrawDataHitUserWords_verify.After that run, two code comments were removed to meet the conventions (a comment-only edit, not rebuilt).
tools/check_conventions.py --base origin/mainpasses.Windows: not built. No title was run.
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)🤖 Generated with Claude Code