perf(agc): pipeline queue-0 DMA_DATA by default #9965
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9965"
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 ebarr24 on 2026-10-23T00:33:24Z.
What
Queue-0 DMA_DATA packets drained the draw pipeline unless APS5_PIPELINE_DMA was set, so the packet worker waited on the committer at every small immediate store. Kena PPSA01746 issues 17-23k DMA_DATA packets per 10 s and 11329 of its 20134 pipeline drains per 10 s are opcode 0x50. enqueueDmaPacket now queues DMA_DATA stores and fills unconditionally, and keepsDrawPipeline keeps the pipeline for a copy or fill whose source and destination miss every queued write. The APS5_PIPELINE_DMA switch and its documentation are removed and the tests run the default path.
Tested
Windows 11, MinGW-w64 GCC 15.2, Release build with tests.
agc_dma_data_tests,agc_driver_depth_fast_clear_submit,agc_driver_layered_volume_submit,agc_driver_pipelined_dispatch,agc_driver_pipelined_dma,agc_driver_pipelined_fillpass with this change; the new test fails onmain.Kena: Bridge of Spirits (PPSA01746), the same scripted input on both runs (ws input script 3baefd0ea4), NVIDIA GeForce RTX 3080, driver 32.0.16.1692; Microsoft Windows 11 Pro: median 12.2 fps on
main78becbb37, 13.6 fps with this change.Validation layer (vulkan-sdk-1.4.363.0), on
mainf6075c2f4aand on this change, withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,VK_ADD_LAYER_PATHset to the layer,ANYPS5_NO_SHADER_CACHE=1andANYPS5_REQUIRE_VULKAN=1:ctest -V -R "dma|pipelined|queued_index_read|submit". Neither log containswas not found but was requested by env var VK_INSTANCE_LAYERS; the change adds noVUID-errors (0 with the change, 0 onmain).ctest -V log, main
The
***Failedresult and the failure line at its end are the new regression test failing onmain, as intended; they are not an unrelated baseline failure.ctest -V log, this change
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)mainand this change, no new VUIDs🤖 Generated with Claude Code
Performance trace
Same machine (Windows 11, RTX 3080, driver 616.92), same title (PPSA01746) and same scripted input (ws input script 3baefd0ea4, 42 presses, about 877 s), captured with
APS5_TRACE_SUMMARY_EVERY=10for main83462cc57dand for this PR's head 4025f4d4364f (which is based on the earlier mainf6075c2f4a; main moved by the commits between the two). Over the intervals after the first 120 s, the median frame p50 is 76.7 ms on main and 72.7 ms with the change; the median frame p99 is 82.2 ms and 81.5 ms; the median GPU busy per present is 38.3 ms and 38.9 ms. The summary file holds interval lines, not window captures, so no trace file (aps5-trace-*.json.gz) was written; the first line of each capture and itstools/trace_digest.pyoutput follow.aps5-summary.jsonl first line, main
83462cc57daps5-summary.jsonl first line, change 4025f4d4364f
tools/trace_digest.py aps5-summary.jsonl, main
84 intervals, 0.0 to 866.2 s, 11350 presents
NVIDIA GeForce RTX 3080, NVIDIA 616.92, Windows 10.0.26200, 3840x2160, commit
83462cc57dtools/trace_digest.py aps5-summary.jsonl, change
85 intervals, 0.0 to 877.3 s, 11251 presents
NVIDIA GeForce RTX 3080, NVIDIA 616.92, Windows 10.0.26200, 3840x2160, commit 4025f4d4364f
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T00:36:03Z.
Review: DISMISSED
The code change and focused Vulkan test report are detailed, and I did not find a concrete correctness defect in the diff. I am requesting one required performance-evidence update before this performance change is ready for approval.
The PR reports median FPS for
maincommit78becbb37, while the PR currently targets base83462cc57ddecac5e5f3cdafafbe38d406e55953. It does not include the requiredaps5-summary.jsonllines, attached traces, ortools/trace_digest.pyoutput. Please capture currentmainand this exact PR head on the same machine, title, and scripted scene, then attach both traces and include both summary lines and digest output. The existing FPS numbers and Vulkan validation logs are useful, but do not supply the repository's required trace evidence.Exact-head conventions check and
git diff --check upstream/main...HEADpassed. Hosted policy/convention/labels checks pass; the workflow skips the Linux and Windows product jobs. I have not run the GPU tests locally because this environment has no Vulkan GPU device.