perf(agc): read DCC keys behind the driver's own pending key store without a wait #458
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/458"
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-03T13:52:06Z.
What
A CB metadata pass (and a resident target's register-clear check) reads the DCC keys with
CurrentDccKeys, which waits for the GPU whenever recorded work writes the key range (SyncThrough). In the intro video of PPSA21564 about 800 passes per 10 s waited about 1.8 ms each, and every one of those waits was behind a key store whose result the driver already knew: its own uncompressed key store (StoreUncompressedOnGpu), or a title fill of uniform keys recorded on the GPU (NoteKeysFillOnGpu).Recorder::noteWriteandnoteWriteOn).LastWriteNote, taken right after the store is noted).CurrentDccKeysasksNewestWriteNotefor the newest pending write over the keys. When that is the store's own note, nothing recorded after the store writes the keys, so they read as the store's keys without a wait.Tested
BUILD_TESTING=ONandctestpass (145/145).pendingKeyStoreTestsinagc_driver_recorder_tests(GPU, run by hand like the rest of that executable): after a pending uncompressed key store, the keys (and a range inside them) read as uncompressed while the store is still pending; a later writer over part of the keys makes the read wait and the store lands; the keys of a pending fill read as the fill's keys without a wait, and a later, wider writer is waited for. With thePendingStoreKeysline removed fromCurrentDccKeysit fails with "reading keys the driver's own pending store wrote waited for the GPU".Recorder.*; each merges cleanly with this branch.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)