perf(agc): finish GPU-indirect draws on the pipelined path #16993
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16993"
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-11-08T04:29:46Z.
What
Indirect draws that reach
finishDrawon the pipelined path now take the same pipelined commit as direct draws, instead of the inline path with a drain. Queued draws also report their indirect argument range and count word as reads, so later writers order after them. This applies to every pipelined indirect draw (including multi-record and count-indirect ones), not only single-record ones; no new hand-off to the draw finisher is added. A guest CPU store into the arguments between enqueue and commit is not covered by the read registration; this is the same as for the index range already registered in that function. New testagc_driver_queued_indirect_read_orderholds a pending image write over an indirect draw's arguments and, for a count-indirect draw, its count word, and checks the draw reads the old records; it fails on main (the draw holds no read of its arguments) and passes with this change.Tested
Linux, RTX 4090, plain default config, no profile counters, warm shader cache, in-level window (the level runs ~3-5 fps on main at 6-15k draws per frame, so absolute fps is low). Paired alternating A/B against main
571cab9f71(same base), 120 s arms, order AB then BA:An earlier 12-arm run with profile counters on showed the PR faster in 6 of 6 pairs (+17% to +30%). Host load varied between arms (1.4-10.9); pairs alternate but are not load-matched. Indirect/pipeline ctest subset 47/47; full AGC ctest 1324 of 1325, the one failure (agc_driver_image_gather_volume) fails identically on main. Frame 60 of rocket_space_station matches main by eye.
Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repository