Skip to content

perf(agc): draw finisher pipeline (APS5_DRAW_PIPELINE) - #6946

Merged
oneandonlydean merged 9 commits into
boykopovar:mainfrom
Raghav314:perf/agc-draw-pipeline
Oct 23, 2026
Merged

oneandonlydean merged 9 commits into
boykopovar:mainfrom
Raghav314:perf/agc-draw-pipeline

Conversation

@Raghav314

@Raghav314 Raghav314 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What

An opt-in draw path, APS5_DRAW_PIPELINE=1, that takes per-draw work off the queue worker. Meant with APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1 (both on main). Based on main a6dcea9; #9508 (descriptor heap) is stacked on it.

  • Draw finisher. The second half of a draw (stage materialization, the draw cache insert, the hand-off to the committer) runs on its own thread while the worker reads the next draw's packets. The worker waits for it before the next cache lookup, before packets that are not register writes or draws, and before guest reads.
  • Commit trims. The committer skips the fragment-output validation and the storage-image layer scans when their inputs match the last commit's.
  • Epoch proofs. A resource or storage image proved current is not proved again in the same collect epoch until a CPU write, a write-back or a recorded write breaks the proof.
  • Ordered metadata passes. Resolve, fast-clear eliminate and DCC decompress go through the pipeline with their write ranges instead of draining it.
  • Shape refresh. A shape entry left at an old draw by main's second-sight admission is replaced in place when the same read user words are seen twice.
  • Labels behind the finisher. WRITE_DATA and RELEASE_MEM labels queued while the finisher holds draws go through its queue instead of draining it, and a WAIT_REG_MEM on them stays beside it.
  • Capture memory. On Linux the main image's pages get a page table entry as on Windows, and capture pages are pooled across threads.

Always on, with the same results: the draw resource key is built in place with a per-result memo, a vertex stage's attribute and buffer table words are read in one read, and the pending storage-image check skips ranges the pending set cannot overlap.

APS5_VERIFY_DRAW_PIPELINE=1 runs the full checks next to the reused proofs and counts differences ([epoch-proofs]). APS5_PROFILE_DRAW=1 finishes every draw on the worker, so it cannot measure this switch.

PPSA36082 (Hades II)

The hub, player standing still, APS5_TRACE_SECONDS=120:10, APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1. Caches warm (each setting run once into the hub, then the title restarted), no other APS5_TRACE_* or APS5_PROFILE_* switch, log not redirected. Current main stops Hades II while the hub loads, so both builds have #6300 merged locally. The switch-on build is the head of #9508, which contains this PR, with the heap switch off.

presents / 10 s frame p50 p99 GPU busy per present queue worker busy
main a6dcea9 + #6300 706 14.0 ms 18.7 ms 2.22 ms 98%
APS5_DRAW_PIPELINE=1 886 11.2 ms 13.7 ms 2.34 ms 96%

+25% frame rate.

Summary lines, traces and digests

main + #6300:

{"commit":"de49f41349a9","dirty":false,"env":{"APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":8859,"ms":10001.243},"presents":706,"frame_ms":{"p50":13.955,"p90":15.665,"p99":18.680,"max":25.064},"gpu_busy_ms_per_present":2.224,"worker_busy_pct":{"queue worker 0x0":97.766},"top_phases_ms_per_frame":{"Driver.Packet":13.844,"Driver.Packet.draw":11.959,"Driver.Draw":11.850,"Driver.Draw.shader_compile_and_link":8.284,"Graphics.Draw":8.166,"Graphics.Draw.draw_and_resource_release":6.859,"Shader.DrawStage":5.206,"Shader.DrawStage.capture_resources":3.196},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.816,"events_lost":132221,"totals_full":false}},"trace":"aps5-trace-de49f41349a9-624652.json.gz"}

APS5_DRAW_PIPELINE=1:

{"commit":"568369d27a2e","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":10851,"ms":10010.638},"presents":886,"frame_ms":{"p50":11.172,"p90":12.083,"p99":13.652,"max":41.180},"gpu_busy_ms_per_present":2.340,"worker_busy_pct":{"queue worker 0x0":96.015},"top_phases_ms_per_frame":{"Driver.Packet":10.838,"Driver.Packet.draw":8.115,"Graphics.Draw":8.087,"Driver.Draw":8.030,"Driver.DrawFinish":7.151,"Graphics.Draw.draw_and_resource_release":6.678,"Driver.Draw.prepare":4.793,"Driver.DrawFinish.shader_compile_and_link":4.199},"trace_dropped":false,"trace":"aps5-trace-568369d27a2e-626697.json.gz"}

Traces:
aps5-trace-de49f41349a9-624652.json.gz
aps5-trace-568369d27a2e-626697.json.gz

seconds 120:10 from present 8859: 706 presents, frame p50 14.0 / p90 15.7 / p99 18.7 / max 25.1 ms, GPU busy 2.2 ms per present
NVIDIA GeForce RTX 4090, NVIDIA 615.78.08, Linux 7.2.10-1-cachyos, 1920x1080, commit de49f41349a9, dropped: yes

{"commit":"de49f41349a9","dirty":false,"env":{"APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":8859,"ms":10001.243},"presents":706,"frame_ms":{"p50":13.955,"p90":15.665,"p99":18.68,"max":25.064},"gpu_busy_ms_per_present":2.224,"worker_busy_pct":{"queue worker 0x0":97.766},"top_phases_ms_per_frame":{"Driver.Packet":13.844,"Driver.Packet.draw":11.959,"Driver.Draw":11.85,"Driver.Draw.shader_compile_and_link":8.284,"Graphics.Draw":8.166,"Graphics.Draw.draw_and_resource_release":6.859,"Shader.DrawStage":5.206,"Shader.DrawStage.capture_resources":3.196},"trace_dropped":true,"trace_dropped_threads":{"queue worker 0x0":{"events_full_after_s":6.816,"events_lost":132221,"totals_full":false}},"trace":"aps5-trace-de49f41349a9-624652.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 9448: 25.1 ms at 8235 ms: Graphics.Draw (draw committer) 8.2, Graphics.Draw.draw_and_resource_release (draw committer) 6.7, batch (gpu) 2.4, Recorder.Sync (draw committer) 0.5
  • present 9447: 21.4 ms at 8214 ms: Graphics.Draw (draw committer) 6.8, Graphics.Draw.draw_and_resource_release (draw committer) 5.3, batch (gpu) 2.2, Recorder.Sync (draw committer) 0.4
  • present 8967: 20.6 ms at 1554 ms: Driver.Packet (queue worker 0x0) 12.8, Driver.Packet.draw (queue worker 0x0) 12.6, Driver.Draw (queue worker 0x0) 12.5, Driver.Draw.shader_compile_and_link (queue worker 0x0) 5.6
  • present 9476: 20.0 ms at 8689 ms: Graphics.Draw (draw committer) 5.0, Graphics.Draw.draw_and_resource_release (draw committer) 3.9, batch (gpu) 2.1, Recorder.Sync (draw committer) 0.4
  • present 9436: 19.6 ms at 8054 ms: Graphics.Draw (draw committer) 5.2, Graphics.Draw.draw_and_resource_release (draw committer) 3.5, batch (gpu) 2.1, Graphics.Draw.validate (draw committer) 0.8

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 3.6 (26 %) 0.0 (0 %) 10.5 28.8 Driver.Packet 3.6, Driver.Draw.shader_compile_and_link 0.0
draw committer 2.6 (18 %) 0.2 (1 %) 11.4 12.8 Graphics.Draw 2.5, Recorder.Reap 0.0
title 0.0 (0 %) 0.0 (0 %) 14.2 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
presenter 0.3 (2 %) 0.0 (0 %) 13.9 0.1 VideoOut.Flip 0.3, Driver.Present 0.0
gpu 2.2 (16 %) 0.0 (0 %) 11.9 0.0 batch 2.2

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 3.6, Driver.Packet.draw 3.5, Driver.Draw 3.4, Graphics.Draw 2.5, batch 2.2, Graphics.Draw.draw_and_resource_release 1.6, Driver.Draw.shader_compile_and_link 1.4, Recorder.Sync 0.3, VideoOut.Flip 0.3, VideoOut.Flip.present 0.3

Longest waits

  • GpuMutex.wait.fill (draw committer) 0.6 ms at 8989 ms, present 9495
  • GpuMutex.wait.draw (draw committer) 0.6 ms at 5107 ms, present 9226
  • GpuMutex.wait.draw (draw committer) 0.6 ms at 9740 ms, present 9547
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 7700 ms, present 9411
  • GpuMutex.wait.fill (draw committer) 0.5 ms at 2460 ms, present 9032
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 1154 ms, present 8940
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 9985 ms, present 9564
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 8917 ms, present 9490
  • Driver.Present.render_fence_wait (presenter) 0.5 ms at 1099 ms, present 8936
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 5976 ms, present 9289

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 2230: 0.6 ms at 2082 ms, present 9004: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.2
  • batch 8347: 0.5 ms at 7633 ms, present 9406: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.7, Graphics.Draw.draw_and_resource_release (draw committer) 0.3
  • batch 7720: 0.5 ms at 7050 ms, present 9366: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.1
  • batch 1246: 0.5 ms at 1159 ms, present 8940: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.2, Recorder.Reap (draw committer) 0.0
  • batch 9168: 0.5 ms at 8421 ms, present 9459: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.6, Graphics.Draw.draw_and_resource_release (draw committer) 0.3

seconds 120:10 from present 10851: 886 presents, frame p50 11.2 / p90 12.1 / p99 13.7 / max 41.2 ms, GPU busy 2.3 ms per present
NVIDIA GeForce RTX 4090, NVIDIA 615.78.08, Linux 7.2.10-1-cachyos, 1920x1080, commit 568369d27a2e, dropped: no

{"commit":"568369d27a2e","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"120:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31743,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 120:10","first_present":10851,"ms":10010.638},"presents":886,"frame_ms":{"p50":11.172,"p90":12.083,"p99":13.652,"max":41.18},"gpu_busy_ms_per_present":2.34,"worker_busy_pct":{"queue worker 0x0":96.015},"top_phases_ms_per_frame":{"Driver.Packet":10.838,"Driver.Packet.draw":8.115,"Graphics.Draw":8.087,"Driver.Draw":8.03,"Driver.DrawFinish":7.151,"Graphics.Draw.draw_and_resource_release":6.678,"Driver.Draw.prepare":4.793,"Driver.DrawFinish.shader_compile_and_link":4.199},"trace_dropped":false,"trace":"aps5-trace-568369d27a2e-626697.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 11411: 41.2 ms at 6239 ms: Driver.Packet (queue worker 0x0) 32.8, Driver.Packet.draw (queue worker 0x0) 31.6, Driver.Draw (queue worker 0x0) 31.6, Driver.Draw.prepare (queue worker 0x0) 30.1
  • present 11229: 16.1 ms at 4198 ms: Driver.Packet (queue worker 0x0) 5.6, Graphics.Draw (draw committer) 4.7, Driver.DrawFinish (draw finisher) 4.6, Driver.Packet.draw (queue worker 0x0) 4.4
  • present 11231: 15.2 ms at 4228 ms: Driver.Packet (queue worker 0x0) 5.0, Graphics.Draw (draw committer) 3.4, Driver.Packet.draw (queue worker 0x0) 3.0, Driver.Draw (queue worker 0x0) 2.9
  • present 11479: 13.8 ms at 7077 ms: Driver.Packet (queue worker 0x0) 4.4, Graphics.Draw (draw committer) 3.8, Driver.Packet.draw (queue worker 0x0) 3.6, Driver.Draw (queue worker 0x0) 3.5
  • present 11407: 13.8 ms at 6190 ms: Driver.Packet (queue worker 0x0) 4.8, Graphics.Draw (draw committer) 3.6, Graphics.Draw.draw_and_resource_release (draw committer) 3.0, Driver.Packet.draw (queue worker 0x0) 3.0

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 2.4 (21 %) 0.0 (0 %) 8.9 29.5 Driver.Packet 2.4, Driver.Completion 0.0
draw committer 2.6 (23 %) 0.2 (2 %) 8.4 12.5 Graphics.Draw 2.6, Recorder.Reap 0.0
title 0.0 (0 %) 0.0 (0 %) 11.3 0.1 Shader.ResolveGraphicsStagesAbi 0.0, Shader.ResolveAbi 0.0
draw finisher 1.7 (15 %) 0.0 (0 %) 9.6 17.8 Driver.DrawFinish 1.7
presenter 0.3 (3 %) 0.0 (0 %) 11.0 0.1 VideoOut.Flip 0.3, Driver.Present 0.0
gpu 2.3 (21 %) 0.0 (0 %) 9.0 0.0 batch 2.3

Largest slices (ms per frame, inclusive, all threads): Graphics.Draw 2.6, Driver.Packet 2.4, batch 2.3, Driver.Packet.draw 1.9, Driver.Draw 1.8, Graphics.Draw.draw_and_resource_release 1.8, Driver.DrawFinish 1.7, Driver.DrawFinish.draw_enqueued 1.0, Driver.Draw.prepare 0.9, Driver.Draw.draw_handed_off 0.5

Longest waits

  • Driver.Present.gpu_mutex_wait (presenter) 1.3 ms at 7138 ms, present 11484
  • GpuMutex.wait.draw (draw committer) 0.8 ms at 6553 ms, present 11434
  • GpuMutex.wait.fill (draw committer) 0.8 ms at 4401 ms, present 11246
  • Driver.Present.gpu_mutex_wait (presenter) 0.7 ms at 690 ms, present 10913
  • GpuMutex.wait.fill (draw committer) 0.6 ms at 1700 ms, present 11004
  • GpuMutex.wait.draw (draw committer) 0.6 ms at 1654 ms, present 11000
  • GpuMutex.wait.draw (draw committer) 0.6 ms at 9033 ms, present 11651
  • GpuMutex.wait.fill (draw committer) 0.6 ms at 4685 ms, present 11272
  • GpuMutex.wait.draw (draw committer) 0.6 ms at 1710 ms, present 11005
  • GpuMutex.wait.draw (draw committer) 0.5 ms at 6239 ms, present 11411

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 10494: 0.7 ms at 7733 ms, present 11535: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.0, Recorder.Sync (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.4
  • batch 979: 0.7 ms at 716 ms, present 10915: GPU no ranges; recorded by Graphics.Draw (draw committer) 1.0, Graphics.Draw.draw_and_resource_release (draw committer) 0.3
  • batch 11842: 0.6 ms at 8716 ms, present 11622: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.4
  • batch 13211: 0.6 ms at 9717 ms, present 11711: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.8, Graphics.Draw.draw_and_resource_release (draw committer) 0.4, Recorder.Submit (draw committer) 0.0
  • batch 6893: 0.6 ms at 5013 ms, present 11301: GPU no ranges; recorded by Graphics.Draw (draw committer) 0.3, Graphics.Draw.draw_and_resource_release (draw committer) 0.2

Tested

Linux (CachyOS), x86-64, GCC, 7800X3D / RTX 4090, NVIDIA 615.78.08, on main a6dcea9.

  • The whole ctest (1920) on feat(agc): GPU descriptor heap on VK_EXT_descriptor_heap (APS5_GPU_HEAP) #9508's head, which contains this PR: all pass except agc_driver_sample_order, agc_driver_sample_order_grid_reference and agc_driver_sample_order_recipe_depth_locations, which fail the same way on main. Conventions pass.
  • 21 existing tests that check results after CPU writes, BDA reads, pipelined DMA and fills, draw cache reuse, labels and a rejected draw also run with the switch (*_draw_pipeline).
  • New tests: agc_driver_pipelined_metadata_pass, agc_driver_program_writes_memory, agc_driver_draw_data_hit_user_words_refresh, agc_driver_draw_finisher_trace, agc_driver_finisher_label_order.
  • Under the Khronos validation layer, tests that drew through the pipeline aborted at exit: the last draw's pipeline items kept the device alive past shutdown, so its cached textures were freed after the layer unloaded. Finished items are now released at shutdown (last commit); agc_driver_address_passes exits cleanly again, as on main.

Known limits

  • Register loads behind held draws whose writes are not known still drain the finisher. Hades II has none; follow-up.
  • Finished pipeline items are freed at the next enqueue (or at shutdown), so up to the pipeline depth of closures stays alive while the queue is quiet.

Why this is one PR

In Hades II the parts on their own made the frame rate worse: the finisher alone made the committer the limit, which the commit trims and epoch proofs fix, and the faster worker dropped data-only stage reuse to 17% until the shape refresh brought it back to 83%.

Testing other titles

Please post:

  • the title ID, GPU, driver and OS;
  • the summary line (APS5_TRACE_SECONDS=70:10, captured as the Performance report form describes) with and without APS5_DRAW_PIPELINE=1, both with APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1 and nothing else changed;
  • whether anything renders differently;
  • with APS5_VERIFY_DRAW_PIPELINE=1, the last [epoch-proofs] line (a nonzero "differed" or "failed" count is a bug).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4090, 615.78.08, Linux 7.2.10 (CachyOS)
  • AI-assisted: yes

@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 1896 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/VariantValidation.cpp L96
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp L47-50, L643
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp L108-109, L138-139
PR 6146 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPrecheck.cpp L5, L17-19
PR 6617 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp L178-185
PR 6959 docs/dev/debt/libSceAgcDriver.md L241
PR 6970 core/shader/recompiler/ShaderDiskCache.cpp L90-91
PR 7048 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp L3735-3737
PR 7369 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp L246
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp L650
PR 7446 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp L643
PR 7514 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp L11
PR 7618 docs/dev/debt/libSceAgcDriver.md L241
PR 7622 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp L105
core/shader/recompiler/CMakeLists.txt L192
tools/tests/test_shader_cache_runtime_sources.py L36
PR 7978 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp L246-247
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp L241-242
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp L383, L385-387, L409-412
PR 8014 docs/dev/debt/libSceAgcDriver.md L241
PR 8180 core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp L3453, L3496-3497
PR 8372 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp L170
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp L437
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp L155-156
PR 8608 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp L50
PR 8735 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/DispatchAhead.cpp L3, L109
PR 8963 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp L50
PR 8999 core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp L130
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp L3079-3084
PR 9129 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCacheStatistics.cpp L65
PR 9177 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp L267-268, L650
PR 9243 core/libs/prx/libSceAgcDriver/CMakeLists.txt L2772
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp L155-156
PR 9248 core/libs/prx/libSceAgcDriver/CMakeLists.txt L2772
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp L155-156
docs/dev/ENVIRONMENT.md L434
PR 9373 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp L5-6, L138-139
PR 9400 docs/dev/ARCHITECTURE.md L132
PR 9599 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp L189-195
PR 9852 core/shader/recompiler/ShaderDiskCache.cpp L90-91
PR 9898 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hpp L14-15, L35, L37-39, L44-45, L52
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp L81-82, L101-102, L204, L259
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp L241-242
PR 9965 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp L32-36

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 674 CMakeLists.txt
PR 1191 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPrecheck.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1835 CMakeLists.txt
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 4072 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 4448 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 4449 docs/dev/debt/libSceAgcDriver.md
PR 5021 CMakeLists.txt
core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Lifecycle.cpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/user/USAGE.md
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5115 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5431 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 5441 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/DispatchAhead.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPrecheck.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Lifecycle.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ARCHITECTURE.md
docs/dev/debt/libSceAgcDriver.md
docs/user/USAGE.md
PR 6044 CMakeLists.txt
core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ARCHITECTURE.md
PR 6169 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6171 docs/user/USAGE.md
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/UnitShadow.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 6187 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/VariantValidation.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCacheStatistics.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPrecheck.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Lifecycle.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/UnitShadow.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Recompiler.hpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6194 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6202 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6223 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6235 core/shader/recompiler/Recompiler.hpp
PR 6273 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6292 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderAddressResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ARCHITECTURE.md
docs/dev/debt/libSceAgcDriver.md
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6488 core/shader/recompiler/ShaderDiskCache.cpp
PR 6501 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp
PR 6539 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6615 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6741 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6788 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/user/USAGE.md
PR 6804 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6867 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Shaders/ShaderRegistry.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6868 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6924 core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ENVIRONMENT.md
docs/user/USAGE.md
PR 6960 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6971 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7201 CMakeLists.txt
core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Lifecycle.cpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.hpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7275 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7410 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderInputState.cpp
core/shader/recompiler/Recompiler.hpp
PR 7457 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 7550 core/shader/recompiler/ShaderDiskCache.cpp
PR 7604 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 7684 core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ARCHITECTURE.md
PR 7689 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderAddressResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/execution/DrawUnsupportedBufferType.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7691 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawPipeline.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawPipeline.cpp
PR 7705 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ENVIRONMENT.md
PR 7803 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7814 docs/dev/ENVIRONMENT.md
PR 7831 core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7918 docs/user/USAGE.md
PR 8004 core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.hpp
docs/dev/ENVIRONMENT.md
PR 8026 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 8077 core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ENVIRONMENT.md
PR 8246 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
PR 8281 docs/dev/debt/libSceAgcDriver.md
PR 8365 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ARCHITECTURE.md
docs/dev/debt/libSceAgcDriver.md
PR 8395 docs/dev/debt/libSceAgcDriver.md
PR 8424 docs/dev/debt/libSceAgcDriver.md
PR 8484 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 8527 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ARCHITECTURE.md
docs/dev/debt/libSceAgcDriver.md
PR 8542 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 8552 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8592 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
docs/dev/debt/libSceAgcDriver.md
PR 8612 core/shader/recompiler/Recompiler.hpp
PR 8672 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ARCHITECTURE.md
docs/dev/debt/libSceAgcDriver.md
PR 8998 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9020 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9077 docs/dev/debt/libSceAgcDriver.md
PR 9133 docs/dev/ENVIRONMENT.md
PR 9193 core/shader/recompiler/Recompiler.hpp
PR 9335 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9348 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 9356 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ENVIRONMENT.md
PR 9387 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Draw.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 9408 docs/user/USAGE.md
PR 9412 docs/dev/debt/libSceAgcDriver.md
PR 9431 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9432 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9489 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9592 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9669 docs/dev/ENVIRONMENT.md
PR 9672 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9673 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9674 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9675 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9676 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
docs/dev/debt/libSceAgcDriver.md
PR 9748 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9856 docs/dev/debt/libSceAgcDriver.md
PR 9891 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9892 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9893 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9895 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Shaders/ShaderRegistry.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md

@oneandonlydean oneandonlydean self-assigned this Oct 16, 2026
@github-actions github-actions Bot added build shader core/shader docs agc libSceAgc* labels Oct 16, 2026
@TideOPL

TideOPL commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Tested on Minecraft Dungeons II (PPSA16064, UE).

Setup

config p50 / p90 / p99 ms presents in 10 s GPU busy ms per present
base (no new switches) 97.0 / 102.4 / 110.9 · 93.0 / 98.1 / 117.3 103 · 107 41.5 · 44.1
APS5_DRAW_PIPELINE=1 98.1 / 103.9 / 114.3 · 99.7 / 106.3 / 123.1 102 · 100 44.8 · 45.7
APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1 110.1 / 115.7 / 131.5 · 122.9 / 133.7 / 146.5 91 · 81 44.6 · 60.5

Draw pipeline. It doesn't speed up this title.

  • Queue worker 0 drops from 99.1% to about 96% busy.
  • The frame stays at about 98 ms. Here, queue 0 also waits about 53 ms per frame in memory_wait for the compute queue (worker 0x20, 99.5% busy), and that isn't on the path this PR moves.

Rendering. Nothing renders wrong in either mode. We took screenshots every 3 s over 90 s of gameplay in each run: no missing textures, no flicker, and no red artefacts. Frames match the base build.

First boot with an empty shader cache. With APS5_DRAW_PIPELINE=1 APS5_GPU_HEAP=1 and ANYPS5_SHADER_CACHE_DIR set to a new, empty directory, the first boot reached gameplay on the first try: title at 23 s, gameplay at 90 s, 919 misses in the first 10 s.

Unrelated failure in the base mode. The base mode (APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1 without the new switches) aborted twice during gameplay with compute shader 0x16000c4400: AGC graphics: storing storage image results pending over mem…, then completed on the third boot. Neither new mode hit it in these runs.

Heap verify lines are in #6947.

Summary lines (second run of each)
{"commit":"14697483367c","dirty":false,"env":{"APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_STAGING_POOL_MIB":"1024","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"70:10"},"gpu":"NVIDIA GeForce RTX 5070","driver":"NVIDIA 610.88","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 70:10","first_present":2469,"ms":10039.361},"presents":107,"frame_ms":{"p50":93.045,"p90":98.051,"p99":117.339,"max":118.137},"gpu_busy_ms_per_present":44.053,"worker_busy_pct":{"queue worker 0x0":99.116,"queue worker 0x20":99.551},"top_phases_ms_per_frame":{"Driver.Packet":186.280,"Driver.Packet.memory_wait":53.009,"Driver.Packet.dispatch":48.448,"Driver.Dispatch":48.189,"Driver.Packet.draw":38.371,"Driver.Draw":38.263,"Driver.Packet.device_lock":27.892,"Vulkan.Dispatch":23.804},"trace_dropped":false}
{"commit":"14697483367c","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_STAGING_POOL_MIB":"1024","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"70:10"},"gpu":"NVIDIA GeForce RTX 5070","driver":"NVIDIA 610.88","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 70:10","first_present":2387,"ms":10090.606},"presents":100,"frame_ms":{"p50":99.654,"p90":106.292,"p99":123.087,"max":123.087},"gpu_busy_ms_per_present":45.665,"worker_busy_pct":{"queue worker 0x0":95.920,"queue worker 0x20":99.521},"top_phases_ms_per_frame":{"Driver.Packet":197.090,"Driver.Packet.memory_wait":53.561,"Driver.Packet.dispatch":53.051,"Driver.Dispatch":52.768,"Driver.Packet.draw":41.396,"Driver.Draw":41.277,"Driver.Packet.device_lock":27.177,"Vulkan.Dispatch":23.692},"trace_dropped":false}
{"commit":"14697483367c","dirty":false,"env":{"APS5_DRAW_PIPELINE":"1","APS5_GPU_HEAP":"1","APS5_PIPELINED_DRAWS":"32","APS5_PIPELINE_DISPATCH":"1","APS5_STAGING_POOL_MIB":"1024","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"70:10"},"gpu":"NVIDIA GeForce RTX 5070","driver":"NVIDIA 610.88","os":"Windows 10.0.26200","resolution":"3840x2160","window":{"spec":"seconds 70:10","first_present":1156,"ms":10113.969},"presents":81,"frame_ms":{"p50":122.860,"p90":133.686,"p99":146.471,"max":146.471},"gpu_busy_ms_per_present":60.490,"worker_busy_pct":{"queue worker 0x0":96.705,"queue worker 0x20":99.552},"top_phases_ms_per_frame":{"Driver.Packet":244.925,"Driver.Packet.dispatch":66.312,"Driver.Dispatch":66.010,"Driver.Packet.memory_wait":62.871,"Driver.Packet.draw":53.253,"Driver.Draw":53.128,"Driver.Packet.device_lock":37.632,"Vulkan.Dispatch":34.611},"trace_dropped":false}

@CnRJay CnRJay left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Measurements are there and the numbers are good (469 to 807 presents in 10 s, p50 21.1 to 12.2 ms, p99 also lower). Three things before this can be judged.

  • One run each, standing still in a menu, on a 4090 at 1080p. The A/A spread of this setup is not shown (compare #5353, where two identical captures differed by 6.4%), and a menu is the best case for draw-cache reuse. Please add a second pair in gameplay, and repeat the pair once to show the spread.
  • This is one switch over seven unrelated changes (finisher thread, commit trims, epoch proofs, ordered metadata passes, shape refresh, straight-line walk, capture memory). The description says the finisher alone made the frame rate worse (105 fps on, 111 off) and that "only the combination" helps. That is a reason to measure each part against its predecessor and land them in order, not to bundle them: nobody can tell which part carries the gain or the risk. At minimum, split off the parts the finisher does not need (metadata passes, straight-line walk, capture memory).
  • Known limit: agc_driver_draw_cache_relocation fails with the switch on. A path that breaks an existing test should not become a default. Make the walk fall back to the relocatable capture when the cache has relocation enabled, or document which titles need relocation.

It is also stacked on #5656 and #6632, so the diff shown here includes their commits. Rebase after they land so only this PR's two commits remain.

@Raghav314

Copy link
Copy Markdown
Contributor Author

@CnRJay thanks for the review.

"Menu". That was a poor word on my side. The scene is not the main menu: it is the item pickup UI in a level, which is the heaviest scene I found in Hades II. The hub holds a steady 120 fps and normal gameplay runs at 100 to 120 fps, so the pickup screen is where the worker is the limit and where the difference shows.

A gameplay trace with both switches (combat in a room, 15 s window, same machine, display at 120 Hz):

presents 1799 in 15 s, frame p50 8.342 / p90 8.344 / p99 8.348 / max 8.397 ms, gpu_busy_ms_per_present 2.216, queue worker 0x0 92.9%, VideoOut.Flip.vblank_wait 8.124 ms per frame

So in combat it sits at the vblank; there is no headroom left to show a difference there on this machine. I have not yet repeated the pair to show the spread.

Splitting. The parts depend on each other in Hades II:

  • The finisher alone halved the worker's busy time (96% to 46%), but the committer then became the limit and the frame rate went down (hub 105 fps on, 111 off). The commit trims and the epoch proofs are what let the committer keep up, and they only matter once the worker feeds it faster.
  • With the faster worker, main's second-sight admission left shape entries at old draws, and data-only reuse of vertex stages fell from about 80% to 17%. The shape refresh brings it back to 83% (hub 108 to 117 fps).
  • The metadata passes go through the pipeline because otherwise every resolve or fast-clear eliminate drains it, so the finisher would wait at each one.
  • The straight-line walk and the capture memory changes are on the capture path. They are the smallest parts; I kept them under the same switch so testers have one path, and APS5_VERIFY_DRAW_PIPELINE=1 checks the walk against the IR evaluator.

So each part could be measured against its predecessor, but the first ones would land as regressions. That is why it is one switch.

I will rebase so only the two commits remain once #5656 and #6632 land.

LLM assistance used.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@TideOPL's run is the first outside Hades II: on Minecraft Dungeons II at 4K the draw pipeline doesn't help (queue 0 waits about 53 ms per frame on the compute queue) and nothing renders wrong. @CnRJay's asks stand: a gameplay pair with its spread, each part measured against its predecessor so they can land in order, and agc_driver_draw_cache_relocation failing with the switch on. To those we'd add an OFF-vs-main summary pair and a full ctest on the current head, a throw when DrawFinisher::Drain, Settle or the full-queue wait in Enqueue run under the GPU lock, and a failed finisher job reported against its own submission. Keep it a draft; it can't land before #5656.

fma-rc
fma-rc previously requested changes Oct 17, 2026

@fma-rc fma-rc left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linux, RTX 5080 (driver 615.78.08), Ryzen 7 7800X3D. Base is main 2fab88d with 5656 and 6632 as in the body, then 6946 at f8192a6, all with APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1, warm cache, two 10 s traces each.

frames in 10 s base APS5_DRAW_PIPELINE=1
Astro's Playroom (PPSA01325), first level gameplay 109, 119 138, 135
Hades II (PPSA36082), first area of a new game 640, 646 1122, 1054

Captures match the base in both, and a burst of consecutive Playroom frames shows no glitch. On a Radeon 680M (RADV) Playroom is GPU-bound and the same: 42 base, 43 and 39 with the switch.

One test fails with the switch. In the full ctest (1364 tests) agc_driver_draw_cache_relocation fails 5 of 5 runs with APS5_DRAW_PIPELINE=1 on 6946 and passes 5 of 5 on the base:

with graphics pipeline libraries: the draws that teach the moved pointer and its contents made 0 hits and 1 inserts, expected 0 and 2

Without the switch the suite fails only where the base fails too: agc_driver_store_over_untracked fails 5 of 5 on the base itself, not from this PR. It passes 5 of 5 on current main 0906c64 with 5656 or 6632 merged alone, so it only shows on the older base.

@SleglJan

Copy link
Copy Markdown
Contributor

007 First Light (PPSA11386 v01.018.000), 4K output, as asked on Discord. The heap runs are on #6947.

Setup:

run presents frame p50 / p90 ms GPU busy ms per present
base 35 1750.7 / 1817.0 175.4
APS5_DRAW_PIPELINE=1, run 1 32 1877.5 / 1973.1 192.3
APS5_DRAW_PIPELINE=1, run 2 34 1792.2 / 1882.6 181.0
  • Both draw-pipeline runs are slower than the one base run (p50 +41 and +127 ms). They also differ from each other by 85 ms, so with one base sample I can't separate an effect from run-to-run spread.
  • One base sample only: a second base run was killed about a minute in by an unrelated local job. The menu background is animated.
  • The GPU is not the limit in the menu: it is busy ~10% of a frame (175-192 ms per present at 1.75-1.88 s per frame).
    • Queue worker 0 is busy 96-100% of the window. It spends ~1.3 s per frame in draws, most of it capture/prepare: Shader.DrawStage.capture_resources 1,062 ms in the base, Driver.Draw.prepare 1,065-1,089 ms with the draw pipeline. Another 0.34-0.39 s goes to dispatches.
    • The other four workers spend 51-59 s of each ~61-s window in Driver.Packet.memory_wait.
  • Rendering: 13 menu shots per run, 5 s apart, show the same animated menu in both modes, with no missing or wrong textures. The background cycles through scenes, so the shots catch it at different points; it's not a frame-by-frame match, and flicker can't be judged at that spacing.

AI-assisted: yes (Claude Code)

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 17, 2026
EagleBearerYS added a commit to EagleBearerYS/AnyPS5 that referenced this pull request Oct 17, 2026
…its render pass

recordDraw passed every address-based draw to the pass hazard tracker as
both an unknown reader and an unknown writer of guest memory. An unknown
writer conflicts with any earlier access in the pass, so no address-based
draw ever continued the previous draw's pass: each one ended the pass and
began a new one, which loads and stores the attachments again. At Resident
Evil Village's menu about half of all draws are address-based, and about
590 render passes begin for about 850 draws per frame.

A build whose programs only read through the BDA table now reports unknown
reads only. The tracker already orders unknown reads behind any recorded
range write in the pass and keeps later range writes behind them, so such
a draw continues a pass whose earlier draws wrote no guest ranges. Builds
with stores through the table, copied writes, or an address lease without
a table keep both flags. APS5_NO_ADDRESS_READ_PASSES=1 restores the old
behaviour.

Render targets reach guest memory only by explicit write-backs, so a read
through the table sees the same bytes whether or not the pass breaks.

Raghav314's boykopovar#6947 makes the same change inside its GPU descriptor heap,
with the read-only fact from boykopovar#6946's recompiler field; this one keeps it in
the driver, without a shader cache format change. The idea also comes from
fable-void's 5d57298 (wip/new-gpu-path), which orders address-based
builds by their known access ranges; this takes the read-only half without
his run-time pre-pass bounds.
@Raghav314

Copy link
Copy Markdown
Contributor Author

A repeat on the current head (d63a804, with the Windows fix), next to #6949 which prepares draws on a thread pool. Hades II (PPSA36082), the level's item pickup UI, Linux, RTX 4090, 7800X3D, NVIDIA 615.78.08. All three builds are main 2fab88d + #5656 + #6632; #6949 is a local cherry-pick of e2d9ac8 onto it. APS5_PIPELINED_DRAWS=32 APS5_PIPELINE_DISPATCH=1 APS5_HOST_IMPORT_MIB=6784, warm shader cache, trace 70:10, one run each:

build presents in 10 s frame p50 / p99 ms queue worker 0 busy
base 499 19.9 / 25.3 93%
this PR, APS5_DRAW_PIPELINE=1 824 12.0 / 14.9 84%
#6949, APS5_DRAW_PREP_THREADS=4 501 19.8 / 23.3 93%

The earlier run on the pre-rebase head gave 807 against a base of 469, so the gain repeats (+72% then, +65% now). In this scene #6949's pool keeps no draw in flight (avg 0.0 in flight, the worker waits for it to empty about 13,000 times a second), so it does not add to this path yet; details are on #6949. The two PRs change the same part of Driver::draw, so they conflict.

LLM assistance used.

@JAB-dev

JAB-dev commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Besiege (PPSA20313), Windows, RTX 4070 SUPER, Ancient Grounds sandbox (about 1000 draws per frame), head f8192a6 with APS5_DRAW_PIPELINE=1 on top of current main: 17.0 -> 20.0 FPS (three alternating runs each: 17.3/17.2/16.6 before, 20.3/19.8/20.0 after). A 10 minute run in the level on top of other open perf PRs had no errors and the frame looks the same.

@blawesom

Copy link
Copy Markdown
Contributor

Rebase handoff — rebased onto current main (all nine commits, authorship unchanged; this PR is the lower half of the #6947 stack, so its commits re-anchor that series too). The conflict in docs/user/USAGE.md keeps your Draw-pipeline section alongside main's newer Texture-cache-budget section.

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV):

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/6946
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is c17fe7fa2.

@Raghav314
Raghav314 force-pushed the perf/agc-draw-pipeline branch from d63a804 to d0779ad Compare October 17, 2026 12:21
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 17, 2026
@Raghav314
Raghav314 force-pushed the perf/agc-draw-pipeline branch from d0779ad to 5e45089 Compare October 17, 2026 13:40
@oneandonlydean

Copy link
Copy Markdown
Collaborator

We checked 5e45089: only 805774e changed, and it resolves correctly against the committer Stop from #6641.

One low-priority follow-up, affecting APS5_DRAW_PIPELINE=1 at exit only: DrawFinisher isn't drained before Queue0().Stop(), and a ProcessShutdown during a submission skips its drain. A finishDraw job can then run after device.Reset(). Draining the finisher before the queue stops would close it.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 17, 2026
@EagleBearerYS

Copy link
Copy Markdown
Contributor

A macOS build fix for this PR, as a ready commit in case it's useful.

What fails. Apple clang's libc++ has no std::atomic<std::shared_ptr<T>>. The recompiler headers stop at std::atomic's static assertion, "std::atomic requires that 'T' be a trivially copyable type", on this line in ResultKeyMemo:

core/shader/recompiler/Recompiler.hpp:647: mutable std::atomic<std::shared_ptr<const std::vector<std::uint32_t>>> words;

  • Where it shows: the macOS relinker build, which compiles request_serializer_tests.
  • Where it comes from: "perf(recompiler): straight-line SRT walk for resource capture" (f6cfc22 on the current head, 3f10f02 before the rebase).
  • Why it hasn't shown here: this PR's checks skip the full builds.

The commit: 8a97b049c4 on exp/pr6946-atomic-memo-5e45089. It is one commit on this PR's current head, 5e45089.

  • The memo: ResultKeyMemo::words becomes AtomicSharedPtr<const std::vector<std::uint32_t>>, from prx/libc/include/general/AtomicSharedPtr.hpp.
    • Where the library has std::atomic<std::shared_ptr>, AtomicSharedPtr is that type.
    • Elsewhere it is a locked shared_ptr with the same load and store, so the uses in Draw.cpp don't change.
  • The build files:
    • the header joins shaderCacheKeySources, which the cache key's include check requires;
    • request_serializer_tests gets core/libs on its include path.

Runs on our fork. These use the full Build workflow on Windows and macOS. The fork has no Linux job; libstdc++ takes the std::atomic branch, as Windows' MinGW build does.

  • Red, on this PR's previous head d0779ad, which has the same line: run 39036016193.
    • relinker (macos-latest, clang++) fails at the assertion above (job).
    • Every other job passes.
  • Green, the commit on the current head 5e45089: run 39038100593.
    • Every job passes.
    • The macOS relinker job runs 178 tests, all passing, request_serializer included (job).
    • Windows runs 1421, all passing.
    • The same change on d0779ad was green too: run 39036312034.

The commit also cherry-picks cleanly onto #6947's head cae12b7, so #6947 gets it through the stack. Take it as is, or fix it your own way. If either head moves again, we can redo it there.

@Raghav314
Raghav314 force-pushed the perf/agc-draw-pipeline branch from 5e45089 to b31be5a Compare October 17, 2026 14:39
@Raghav314

Copy link
Copy Markdown
Contributor Author

@oneandonlydean thanks, you're right. The finisher is only drained at the end of a queue 0 submission, so a ProcessShutdown in the middle skipped it. Driver::stop() now drains the finisher after the workers are joined and before Queue0().Stop(), so the committer is still there for any finishDraw that commits, and nothing runs after device.Reset() (19ae932).

LLM assistance used.

EagleBearerYS and others added 6 commits October 23, 2026 03:46
…+ builds

ResultKeyMemo declared std::atomic<std::shared_ptr<...>>. libc++ has no
atomic<shared_ptr> specialization, so with Apple clang the recompiler
headers stop at std::atomic's trivially-copyable static assertion
(request_serializer_tests in the macOS relinker build). The memo now uses
AtomicSharedPtr from libc, which is that specialization where the library
provides it and a locked shared_ptr with the same load and store otherwise.
The header joins the shader disk cache key's sources, and
request_serializer_tests gets core/libs on its include path.
… finisher

A WRITE_DATA or RELEASE_MEM label the worker queues for the committer
drained the draw finisher first, so that it could not reach the committer
before the draws the finisher still held. In Hades II nearly every drain
of the finisher was one (81,762 of 82,467 per 10 s were WRITE_DATA).
While the finisher holds draws, the label's enqueue now runs as a
finisher job, so it reaches the committer after them, and its write
range and value are a pending write of the finisher until then. A
WAIT_REG_MEM that a pending label satisfies, in the finisher or behind
it, stays beside the finisher as it did beside the committer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ice is destroyed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Raghav314
Raghav314 force-pushed the perf/agc-draw-pipeline branch from cc388f2 to a9e2141 Compare October 22, 2026 22:31
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 22, 2026
@oneandonlydean
oneandonlydean merged commit 1631964 into boykopovar:main Oct 23, 2026
13 checks passed
@Amoenus

Amoenus commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Independent Windows component validation after this merge, on literal main 0ed14c10671275c15834c481ae2e861048aedfee (only a keyboard debt-documentation change after merge16319642a4).

Full native libraries, relinker and selected real fixtures build with WinLibs GCC15.2 r7/UCRT Release, SPIRV-Tools enabled. 24/24 selected executions pass:18 physical-GPU processes and6 CPU processes.

  • On each actual RTX5080 and Radeon Graphics:prepared-unregistered graphics3/3;prepared graphics,draw-cache relocation,relocation with draw pipeline,pipelined metadata pass,finisher label ordering with draw pipeline,and user-word shape refresh1/1 each.
  • CPU:queued raw shader3/3;shader memory,program-write classifier and finisher tracing1/1 each. The last two do not count as GPU coverage.
  • Required Vulkan,app shader cache/pipeline journal disabled,verbose serial CTest with30s bounds. Physical adapters and loaded Khronos1.4.363 verified in every GPU process. Zero VUIDs,validation warnings/errors,skips or timeouts;longest main test2.126s. Fixture-source selection checked against compile_commands;no excluded-test stubs.

The same24 checks also pass in our maintained Sonic composition 8cf92d04c605fed4699f1702541285324d543bba, including its separate retained-snapshot eviction regression. That composition contains other preserved fixes and is not an unchanged PR-only comparison.

GPUs tested:NVIDIA GeForce RTX508010de:2c02,610.62/32.0.16.1062;AMD Radeon(TM) Graphics1002:13c0,32.0.21036.18;Windows11 Enterprise26200. Driver caches uncontrolled.

This is selected component coverage,not a title run,full suite or the requested matched performance/epoch-proof comparison. Existing Sonic title observations retain their pre-merge source pins. AI-assisted:yes (Codex);author responsible.

adriadam10 pushed a commit that referenced this pull request Oct 24, 2026
Since the draw finisher (#6946), Driver::draw copies decode->programs
into the draw tail for every draw: one outer vector, one userData
vector per program and two shared_ptr reference bumps per program.
Before it, the copy was made only when the draw writes user words
(mesh index buffer words, indirect record words or relocated user
patches), and every other draw read decode->programs in place.

Keep the copy in DrawTail::writablePrograms and make DrawTail::programs
a pointer to it or to decode->programs, as before. Every write goes
through writablePrograms, and the draws that write are exactly the
mesh, indirect and patched ones, so a const view of decode->programs
can't be written.

The queued commit closures now move writablePrograms. When it is empty
the captured decode keeps decode->programs alive, and decode is only
replaced (by the relocated copy) on draws with user patches, which
take the copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* build docs perf Performance change shader core/shader

Projects

None yet

Development

Successfully merging this pull request may close these issues.