Repository navigation
perf(agc): draw cache keys on the user words each stage reads - #493
Conversation
|
Thanks for splitting it. I checked the key against the decoder: |
0bbec33 to
9d37d56
Compare
The draw key mixed all 32 user data words of every stage. It now mixes only the words a stage's RSRC2 counts, so draws that differ only in words their programs never read share an entry. The RSRC2 registers stay in the key. APS5_DRAW_KEY_ALL_USER_WORDS=1 mixes all 32 again. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
9d37d56 to
131adc1
Compare
|
Rebased onto current |
What
Split out of #291, as discussed there. The draw cache key mixed all 32 user data words of every stage, so draws that differed only in words their programs never read got separate entries and decoded and compiled again. The key now mixes only the user words each stage's RSRC2 counts (USER_SGPR, including the high bit). The RSRC2 registers themselves stay in the key, so a different count is a different key.
APS5_DRAW_KEY_ALL_USER_WORDS=1mixes all 32 again.The other part of #291 is #494 (data-only hits, on top of this). #291's time-based failure memo is dropped.
Tested
Windows 11 Pro, AMD Ryzen 5 7600, NVIDIA GeForce RTX 5080 (driver 32.0.16.1074), 32 GB DDR5-5600, MinGW-w64 GCC 15.2.0.
ctest: everything that passes onmainhere passes. There's no unit test for the key itself:Driver::drawRegisterKeyis internal to the driver DLL, and no test target links the Execution code.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🤖 Generated with Claude Code