Skip to content

perf(agc): replace winpthreads locks and TLS on the draw path - #6292

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
Meh7an:perf/agc-draw-path-locks
Oct 23, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
Meh7an:perf/agc-draw-path-locks

Conversation

@Meh7an

@Meh7an Meh7an commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What

On Windows the driver is built with MinGW:

  • std::mutex locks and unlocks through winpthreads (pthread_mutex_lock, pthread_mutex_unlock);
  • thread_local is emulated: every access calls __emutls_get_address, which calls pthread_getspecific.

A draw takes a few dozen different mutexes, and every packet reads several thread-locals. On the S2 page of Sonic Origins Plus's main menu, the queue worker spent these samples per frame (APS5 sampler, 15 s): pthread_mutex_lock 1.22, pthread_mutex_unlock 0.82, __emutls_get_address 2.15 (1.80 of it in pthread_getspecific), and the device use gate 0.37. That is about 10% of its frame.

  • AgcDriver::Mutex (Execution/include/Mutex.hpp) is an inline mutex on one atomic word.
    • An uncontended lock or unlock is one atomic instruction. A contended lock waits on the word at once (std::atomic::wait, which spins 12 pauses and 4 yields itself before it sleeps). Like std::mutex, it is neither recursive nor fair.
    • The first version spun 100 pauses before waiting. @simonbronk's contention benchmark showed that this costs 3 to 7 times the CPU of std::mutex with 4 to 8 threads on one lock, and that waiting at once beats std::mutex at every thread count. Without the spin, main's agc_driver_multisample_fill_host_only failed most runs: waiters that sleep at once widen a race main already has (agc_driver_multisample_fill_host_only fails intermittently: the sentinel fill after an absorbed multisampled clear does not land #6512), a multisampled target's clear recorded on another device's recorder. fix(agc): record a multisampled target's commands on its own device #6522 fixes that race, so this PR depends on it. The game numbers below come from the spinning version; on that page the contended path takes no samples (0.00 per frame in three sampled runs of my fork's dev), so they hold.
    • It replaces 74 plain std::mutexes of the draw path. perf(agc): pipeline queue-0 draw commits behind the packet worker #1201 already made two more a SlimMutex (the pending storage writes and the unit shadows), and those stay as they are.
    • Seven stay std::mutex: the five a std::condition_variable waits with, and the sparse and settle queue mutexes, which the context hands out as std::mutex*.
  • DeviceUseGate keeps its user count and the replacement flag in one atomic word instead of a mutex and a condition variable. A packet enters and leaves with one atomic instruction each.
  • GpuMutex takes an AgcDriver::Mutex and counts its own recursion. Its owner token is the thread environment block's address (CurrentThreadToken) instead of a thread-local's.
  • HostThreadSlot (libc/include/HostThreadSlot.hpp) holds a per-thread value of up to 8 bytes.
    • On x64 Windows it is a TLS slot (TlsAlloc), read and written through the thread environment block in one or two instructions. Elsewhere it is a thread_local.
    • It holds the packet tag, the read site, the collect epoch, and the pointers to the thread's collect memo and deferred labels (still allocated with ThreadOwned).
  • Driver::timed reads no clock unless APS5_PROFILE_DRAW asks for its report. A wait packet reads it only for APS5_TRACE_GPU's slow-wait line (suggested by @simonbronk).
  • agc_locks (tests/Locks.cpp, a plain CPU test, so the Windows CI job runs it too) checks:
    • the mutex under contention (short and long holds), its try_lock, and a sleeping waiter's wake;
    • the gate: no user inside during a replacement, one replacement at a time;
    • the GPU mutex's recursion across threads;
    • the thread slots: zero on a new thread, direct and expansion slots, and the packet tag and read site defaults.

With this change, per frame: pthread_mutex_lock 1.22 to 0.31, pthread_mutex_unlock 0.82 to 0.20, __emutls_get_address 2.15 to 1.48, and the device use gate 0.37 to 0.05. What remains is the mutexes kept or outside the draw path, and thread-locals this change does not touch.

Tested

Windows 11 (10.0.26300), WinLibs GCC 15.2.0 (UCRT), Release, NVIDIA GeForce RTX 2080 Ti, driver 617.14.

  • Rebased onto main 53a0a27.
    • Main's 84e3b73 made the depth surfaces' surfacesMutex a std::recursive_mutex, and its callers lock it again while they hold it. It stays a std::recursive_mutex and is not switched to AgcDriver::Mutex.
    • The buffer pool keeps main's new member defaults and image budget fields next to AgcDriver::Mutex.
    • On that main, with this change, the full ctest suite passes 1836 of 1838.
      • agc_driver_image_array_window_past_layer_limit is not run: MinGW does not build its alignas(65536).
      • guest_kqueue exited with 0xc0000409 once under --parallel 4. It passed 6 of 6 runs alone.
  • Rebased onto main 1d41645.
    • IndirectDispatch.cpp keeps main's GuestBufferMemory.hpp include, and the buffer pool keeps main's memory property fields, next to AgcDriver::Mutex.
    • Main moved the mismatch reports to Snapshots().mismatched, so GuestBufferMemory.cpp only turns reportMutex into an AgcDriver::Mutex.
    • On that main, with this change, the full ctest suite passes 1740 of 1742.
      • agc_driver_image_array_window_past_layer_limit is not run: main does not compile ImageArrayWindowPastLayerLimit.cpp with MinGW (alignas(65536)).
      • agc_driver_pass_input_hazard (added in ba4571a) fails ("a pass writing the indices an open pass reads in place took no barrier") on plain main 1d41645 as well, 0 of 4 runs alone.
  • Rebased onto main 0bc3003.
    • Main's new AdoptLatestCollectEpoch and lastBumpedEpoch read the collect epoch through the HostThreadSlot.
    • The GPU mutex keeps main's handoff spin (LockSpinning) inside its recursion guard.
    • dumpRequest's new suffix and the descriptor pool's freeDescriptorSets stay, with AgcDriver::Mutex.
    • AcquireCache takes the AgcDriver::Mutex.
    • On that main, with this change, the full ctest suite passes 1522 of 1523. agc_driver_bda_device fails (vkWaitForFences graphics: Vulkan result -4) on plain main 0bc3003 as well, 0 of 4 runs alone.
  • Rebased onto main c842491. Next to drawCacheMutex, main added the draw relocation fields (perf(agc): find cached draws across moved user-data pointers #4943), and perf(agc): journal the pipelines of a run and build them ahead on the next one #5875 keyed the compute pipelines by ComputePipelineKey and dropped the pipeline store's scratchKey. drawCacheMutex, computePipelinesMutex and the pipeline store's mutex stay AgcDriver::Mutexes, and every lock of them is a std::lock_guard or std::unique_lock as before. The collect memo ring goes through its thread slot as before. perf(agc): pipeline queue-0 draw commits behind the packet worker #1201's per-epoch collect map next to it keeps its thread_local, like the other thread-locals main added since. tools/check_conventions.py passes: HostThreadSlot takes TlsAlloc and TlsSetValue from <processthreadsapi.h>, and the GPU mutex's unlock keeps main's comment where it was.
  • Sonic Origins Plus, main menu, S2 page (the 3D background), 1233x694 window.
    • A sampled pair (APS5 sampler, 15 s) took the profile numbers above. The FPS shown in the title went from 7.75 to 8.38 (median of six readings).
    • Captured with APS5_TRACE_SECONDS=200:15 on the same machine in one session, caches warm. Traces attached.
    • Baseline b8acbb0, this change 824084e (the summaries name the commits before them, see the note):
Metric Baseline This PR Change
frame_ms.p50 156.721 129.749 -17.2%
frame_ms.p90 163.045 139.339 -14.5%
mean_frame_ms 158.259 130.959 -17.3%
gpu_busy_ms_per_present 78.608 85.850 +9.2%
Driver.Packet (ms per frame) 155.677 128.738 -17.3%
Driver.Packet.draw (ms per frame) 118.731 117.440 -1.1%

This pair overstates the change. The baseline's window ran slow outside the draw path: Driver.Packet minus its draw part is 37.0 ms against 11.3 ms with this change. Its title FPS, 6.70, is also below every other run of that build (7.51 to 8.34). The sampled pair, 7.75 to 8.38 FPS (+8%), is the better estimate.

Note: measuring base. These numbers come from my fork's dev, on main 0a56aaa, the last main before #5596. On Windows, later mains compare direct imports on every use, which keeps this menu at 3-4 FPS and hides a change of this size.

Both carry these commits from my fork:

The comparison tool marks the window's first present (2260 vs 2475) as a configuration difference: the window opens 200 s into each run. Both summaries set trace_dropped, because the worker filled its event buffer at about 2,700 draws per frame. The phase totals above stay complete.

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: fix(agc): record a multisampled target's commands on its own device #6522
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 2080 Ti, driver 617.14, Windows 11
  • AI-assisted: yes

Traces and summary lines (baseline b8acbb0, this change 824084e):
locks-traces.zip

The two summary lines, with tools/trace_digest.py for each trace:

Baseline (summary commit a38ad5e)

seconds 200:15 from present 2260: 95 presents, frame p50 156.7 / p90 163.0 / p99 190.3 / max 190.3 ms, GPU busy 78.6 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit a38ad5e (dirty), dropped: yes

{"commit":"a38ad5e9fc89","dirty":true,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":2260,"ms":15034.646},"presents":95,"frame_ms":{"p50":156.721,"p90":163.045,"p99":190.275,"max":190.275},"gpu_busy_ms_per_present":78.608,"worker_busy_pct":{"queue worker 0x0":98.389},"top_phases_ms_per_frame":{"Driver.Packet":155.677,"Driver.Packet.draw":118.731,"Driver.Draw":117.267,"Driver.Draw.draw_and_resource_release":54.084,"Graphics.Draw":52.74,"Driver.Draw.shader_compile_and_link":45.397,"Graphics.Draw.draw_and_resource_release":42.561,"Shader.DrawStage":38.974},"trace_dropped":true,"trace":"aps5-trace-a38ad5e9fc89-37256.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2288: 190.3 ms at 4435 ms: batch (gpu) 81.7, Driver.Present (presenter) 26.2, Driver.Present.render_fence_wait (presenter) 25.9, Vulkan.Retire (presenter) 25.9
  • present 2270: 183.1 ms at 1586 ms: Driver.Packet (queue worker 0x0) 172.8, Driver.Packet.draw (queue worker 0x0) 144.6, Driver.Draw (queue worker 0x0) 143.1, batch (gpu) 80.2
  • present 2316: 180.7 ms at 8871 ms: batch (gpu) 76.3, Driver.Present (presenter) 23.3, Driver.Present.render_fence_wait (presenter) 22.8, Vulkan.Retire (presenter) 22.8
  • present 2342: 180.1 ms at 12960 ms: batch (gpu) 75.6, Driver.Present (presenter) 27.0, Driver.Present.render_fence_wait (presenter) 26.5, Vulkan.Retire (presenter) 26.5
  • present 2326: 178.7 ms at 10450 ms: batch (gpu) 76.4, Driver.Present (presenter) 23.4, Driver.Present.render_fence_wait (presenter) 23.0, Vulkan.Retire (presenter) 23.0

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 34.3 (22 %) 0.1 (0 %) 123.8 51.7 Driver.Packet 34.4, Driver.Draw 0.0
presenter 0.5 (0 %) 26.5 (17 %) 131.3 0.1 Driver.Present 27.0
gpu 78.5 (50 %) 0.0 (0 %) 79.8 0.0 batch 78.5

Largest slices (ms per frame, inclusive, all threads): batch 78.5, Driver.Packet 34.4, Driver.Packet.draw 27.8, Driver.Draw 27.5, Driver.Present 27.0, Driver.Present.render_fence_wait 26.4, Vulkan.Retire 26.4, Vulkan.Retire.wait 26.4, Driver.Draw.draw_and_resource_release 6.1, Graphics.Draw 6.0

Longest waits

  • Driver.Present.render_fence_wait (presenter) 31.6 ms at 4790 ms, present 2290
  • Driver.Present.render_fence_wait (presenter) 30.6 ms at 4626 ms, present 2289
  • Driver.Present.render_fence_wait (presenter) 29.7 ms at 1107 ms, present 2267
  • Driver.Present.render_fence_wait (presenter) 29.6 ms at 4121 ms, present 2286
  • Driver.Present.render_fence_wait (presenter) 29.5 ms at 1 ms, present 2260
  • Driver.Present.render_fence_wait (presenter) 29.4 ms at 1270 ms, present 2268
  • Driver.Present.render_fence_wait (presenter) 29.2 ms at 3009 ms, present 2279
  • Driver.Present.render_fence_wait (presenter) 29.2 ms at 4277 ms, present 2287
  • Driver.Present.render_fence_wait (presenter) 29.2 ms at 14237 ms, present 2350
  • Driver.Present.render_fence_wait (presenter) 29.1 ms at 7324 ms, present 2306
This change (summary commit b8acbb0)

seconds 200:15 from present 2475: 115 presents, frame p50 129.7 / p90 139.3 / p99 153.5 / max 153.5 ms, GPU busy 85.8 ms per present
NVIDIA GeForce RTX 2080 Ti, NVIDIA 617.14, Windows 10.0.26300, 3840x2160, commit b8acbb0 (dirty), dropped: yes

{"commit":"b8acbb0d65c3","dirty":true,"env":{"APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"200:15"},"gpu":"NVIDIA GeForce RTX 2080 Ti","driver":"NVIDIA 617.14","os":"Windows 10.0.26300","resolution":"3840x2160","window":{"spec":"seconds 200:15","first_present":2475,"ms":15060.273},"presents":115,"frame_ms":{"p50":129.749,"p90":139.339,"p99":153.497,"max":153.537},"gpu_busy_ms_per_present":85.85,"worker_busy_pct":{"queue worker 0x0":98.33},"top_phases_ms_per_frame":{"Driver.Packet":128.738,"Driver.Packet.draw":117.44,"Driver.Draw":116.398,"Driver.Draw.draw_and_resource_release":52.218,"Graphics.Draw":51.006,"Driver.Draw.shader_compile_and_link":45.265,"Graphics.Draw.draw_and_resource_release":41.533,"Shader.DrawStage":39.233},"trace_dropped":true,"trace":"aps5-trace-b8acbb0d65c3-37744.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2580: 153.5 ms at 13736 ms: batch (gpu) 89.8, Driver.Present (presenter) 34.2, Driver.Present.render_fence_wait (presenter) 33.8, Vulkan.Retire (presenter) 33.8
  • present 2492: 153.5 ms at 2205 ms: Driver.Packet (queue worker 0x0) 144.4, Driver.Packet.draw (queue worker 0x0) 139.3, Driver.Draw (queue worker 0x0) 138.3, batch (gpu) 88.2
  • present 2573: 152.5 ms at 12812 ms: batch (gpu) 88.0, Driver.Present (presenter) 31.5, Driver.Present.render_fence_wait (presenter) 31.0, Vulkan.Retire (presenter) 31.0
  • present 2544: 150.9 ms at 8988 ms: batch (gpu) 85.6, Driver.Present (presenter) 32.0, Driver.Present.render_fence_wait (presenter) 31.5, Vulkan.Retire (presenter) 31.5
  • present 2521: 147.8 ms at 5947 ms: batch (gpu) 82.9, Driver.Present (presenter) 31.8, Driver.Present.render_fence_wait (presenter) 31.2, Vulkan.Retire (presenter) 31.2

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 23.5 (18 %) 0.1 (0 %) 107.4 42.1 Driver.Packet 23.6, Driver.Completion 0.0
presenter 0.5 (0 %) 31.5 (24 %) 99.0 0.1 Driver.Present 32.0
gpu 85.7 (65 %) 0.0 (0 %) 45.2 0.0 batch 85.7

Largest slices (ms per frame, inclusive, all threads): batch 85.7, Driver.Present 32.0, Driver.Present.render_fence_wait 31.4, Vulkan.Retire 31.4, Vulkan.Retire.wait 31.4, Driver.Packet 23.6, Driver.Packet.draw 22.7, Driver.Draw 22.5, Driver.Draw.draw_and_resource_release 4.9, Graphics.Draw 4.8

Longest waits

  • Driver.Present.render_fence_wait (presenter) 37.0 ms at 2359 ms, present 2493
  • Driver.Present.render_fence_wait (presenter) 36.6 ms at 2489 ms, present 2494
  • Driver.Present.render_fence_wait (presenter) 36.4 ms at 11618 ms, present 2564
  • Driver.Present.render_fence_wait (presenter) 36.0 ms at 14151 ms, present 2583
  • Driver.Present.render_fence_wait (presenter) 35.7 ms at 1282 ms, present 2485
  • Driver.Present.render_fence_wait (presenter) 35.7 ms at 10582 ms, present 2556
  • Driver.Present.render_fence_wait (presenter) 35.4 ms at 1022 ms, present 2483
  • Driver.Present.render_fence_wait (presenter) 35.3 ms at 12273 ms, present 2569
  • Driver.Present.render_fence_wait (presenter) 34.9 ms at 382 ms, present 2478
  • Driver.Present.render_fence_wait (presenter) 34.5 ms at 3151 ms, present 2499

@SoRadGaming

Copy link
Copy Markdown
Contributor

Windows / AMD results for this head, in a scene where queue worker 0 is the limit: ASTRO BOT (PPSA21564 01.007.000), -lvl hub_crashsite (the full Crash Site hub).

Host: Windows 11 Pro 26200, Ryzen 7 5800X3D, Radeon RX 9070 XT (AMD proprietary driver 32.0.23033.1002), 32 GB, WinLibs GCC 15.2.0 r7, Release.

Builds.

Method. No input, warm shader cache (1,904 hits, 0 misses), APS5_NO_SNAPSHOT_CHECK=1 APS5_RESOURCE_CACHE_ENTRIES=4096, no profiling switches. FPS is the window's present counter over 120 s, after a 120 s settle once the level has started. Runs alternate.

hub FPS 10 s samples after the settle
base 6.27 / 6.25 / 6.23 / 6.20 5.7-6.4
base + this PR 6.64 / 6.60 (+6.1 %) 6.1-6.8

Seven launches with this PR went through boot, loading and at least 3 minutes in the hub: the two measured above, and five more held 3 minutes each, at 6.62-6.67 FPS. None had a stop, a hang or an error in the log.

AI-assisted (Claude Code); the builds and runs are on my machine.

@github-actions

github-actions Bot commented Oct 15, 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 6146 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp L12
PR 6628 core/libs/prx/libSceAgcDriver/Graphics/src/BdaResources.cpp L1
PR 6804 core/libs/prx/libSceAgcDriver/Graphics/include/Sampler.hpp L62-63
PR 7464 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Synchronization/DeferredLabels.cpp L4
PR 7622 core/libs/prx/libSceAgcDriver/Execution/src/WorkerSampler.cpp L1
PR 7677 core/libs/prx/libSceAgcDriver/CMakeLists.txt L2337
PR 7800 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp L173-181
PR 7968 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferCopy.cpp L4
PR 8139 core/libs/prx/libSceAgcDriver/CMakeLists.txt L715
PR 8898 core/libs/prx/libSceAgcDriver/Graphics/src/DccMetadata.cpp L525-526
PR 9373 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp L17

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 1191 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 1896 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
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/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 4449 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 5058 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/IndirectDispatch.cpp
PR 5115 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.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/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 5441 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.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/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6169 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DccMetadata.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
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
PR 6188 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/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
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
PR 6194 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6202 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.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/DccMetadata.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6223 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6273 core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.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
PR 6539 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6548 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6741 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 6788 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 6868 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
PR 6960 core/libs/prx/libSceAgcDriver/Execution/include/GuestMemory.hpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6971 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Eq/src/Event.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7048 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7201 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cpp
core/libs/prx/libSceAgcDriver/Execution/src/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/BdaResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7275 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 7369 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7449 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 7457 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.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/src/Texture.cpp
PR 7642 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/GuestMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Sampler.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BdaResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.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 7689 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 7705 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 8004 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8014 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8246 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 8365 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8484 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 8527 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 8542 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8552 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferCopy.cpp
PR 8592 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8608 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 8612 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8672 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 8735 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8998 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 8999 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9176 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 9188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 9193 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9243 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
PR 9248 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
PR 9287 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 9289 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 9356 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 9387 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 9400 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
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/Graphics/src/Texture.cpp
PR 9412 core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 9431 core/libs/prx/libSceAgcDriver/Eq/src/Event.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9432 core/libs/prx/libSceAgcDriver/Eq/src/Event.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9489 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 9508 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Sampler.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BdaResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.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 9521 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9592 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 9672 core/libs/prx/libSceAgcDriver/Eq/src/Event.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9673 core/libs/prx/libSceAgcDriver/Eq/src/Event.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9674 core/libs/prx/libSceAgcDriver/Eq/src/Event.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9675 core/libs/prx/libSceAgcDriver/Eq/src/Event.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9676 core/libs/prx/libSceAgcDriver/Eq/src/Event.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9685 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9748 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 9879 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9891 core/libs/prx/libSceAgcDriver/Eq/src/Event.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9892 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Eq/src/Event.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9893 core/libs/prx/libSceAgcDriver/Eq/src/Event.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9895 core/libs/prx/libSceAgcDriver/Eq/src/Event.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/BufferFill.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9897 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 9898 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/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 9965 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketExecution.cpp
PR 10026 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

EagleBearerYS added a commit to EagleBearerYS/AnyPS5 that referenced this pull request Oct 15, 2026
… report

boykopovar#6292 moves the APS5_PROFILE_DRAW check in Driver::timed to the top and
rewrites the report's condition, the two lines this branch's driver-time
line sat between, so the two conflicted. The line now follows the
report. It reads the same flag and times, so it counts the same.
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 15, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

Thanks. The mutex, the use gate, the GPU mutex's recursion and the TEB slot reads all check out. The offsets match the x64 TEB layout, and a small harness built from HostThreadSlot.hpp kept per-thread values isolated in both a direct slot and an expansion slot (index 74) across three threads, matching TlsGetValue throughout.

One ask, about where the new test lives. tests/execution/Locks.cpp is picked up by the execution-test glob, and the Windows CI job configures ANYPS5_AGC_EXECUTION_TESTS=F16ToF32Unpack;F64FmaSubnormals;RegistrationPrepareShutdown. Every other execution test, including this one, is built from ExecutionTestNotBuilt.cpp there and reports a skip. Linux CI does run it, but on Linux HostThreadSlot is a plain thread_local. So no CI job runs the TEB code this PR adds. The test doesn't need Vulkan, so could you register it as a plain CPU test outside tests/execution (like agc_lds_lock_budget), so it runs on the Windows job too?

@Meh7an
Meh7an force-pushed the perf/agc-draw-path-locks branch from 760bdf5 to ee2cd67 Compare October 20, 2026 13:42
@Meh7an

Meh7an commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, and thanks for checking the slots against TlsGetValue with a harness.

  • The test is now tests/Locks.cpp, a plain CPU test named agc_locks, registered like agc_shared_write.
    • It links libSceAgcDriver and libc and needs no Vulkan device, only the headers.
    • It is out of the execution-test glob, so the Windows job builds and runs it instead of the ExecutionTestNotBuilt.cpp skip.
    • Linux runs it as before, with HostThreadSlot as a plain thread_local.
  • On main 1d41645 it passes on Windows, where the slots read the TEB.

@github-actions github-actions Bot added build needs rebase Conflicts with main, rebase needed labels Oct 20, 2026
@Meh7an
Meh7an force-pushed the perf/agc-draw-path-locks branch from ee2cd67 to c4a6636 Compare October 21, 2026 06:16
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 21, 2026

@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.

The profile is a convincing reason (pthread_mutex_lock/unlock, __emutls_get_address and the device use gate are about 10% of the queue worker's frame on Sonic Origins Plus), the first spinning version was caught and fixed on @simonbronk's contention benchmark, and the frame effect is measured on two machines (7.75 to 8.38 fps title reading on the 2080 Ti; SoRadGaming's Astro Bot Crash Site on a Radeon). The risk is in what it replaces.

  • It swaps 74 std::mutexes for a hand-written, non-fair, non-recursive mutex built on std::atomic::wait. The description's own account is that waiters that sleep at once widened a race main already has (agc_driver_multisample_fill_host_only failing most runs, #6512), which #6522 fixes. So this PR changes scheduling enough to expose latent races, and the safe merge order is #6522 first. State that in the dependency list and keep the test running in a loop in CI (--repeat until-fail), since the next latent race will show up in the same way and in some other test.
  • Priority and fairness: a lock that sleeps with no spin hands the CPU to another waiter at once. The benchmark (4-8 threads on one lock) shows it beating std::mutex; add the case that matters here, the GPU mutex held across a long operation by the queue worker while the packet worker and a loader thread wait, with the hold time of a real submit, and report the waiters' wake latency.
  • HostThreadSlot on Windows is a TlsAlloc slot read through the TEB. Say what happens if the slots are exhausted or TlsAlloc fails (it should throw at startup), and that a slot is released at shutdown.
  • GpuMutex's owner token is the TEB address. If a thread could exit while holding it, a later thread that is given the same TEB address would appear to own the lock. A one-line statement that no thread can exit while holding the GPU mutex (or a test) would settle it.
  • 708 lines across the whole draw path conflicts with main repeatedly (the description lists five rebases). The conflicts show the risk: every change to a draw-path mutex now needs the new type. A staged landing would help: the HostThreadSlot and Driver::timed changes (no behavior change on contention) first, the mutex replacement second.

@tibzejoker

Copy link
Copy Markdown
Contributor

GTA V (PPSA04264) data and pitfalls, from our older POC base (gtav-next11, Oct 16; RTX 4090, i9-13900K, GCC 15.2), not this head.

Method: APS5_SAMPLE_WORKER stacks, symbolized with addr2line -i on a -O3 -g build. -g1 has no inline info, so inlined lock and emutls calls get charged to the wrong caller.

I can run GTA's open world on your head (committer us/draw, base vs PR) if useful.

AI-assisted: yes (Claude Code)

@adriadam10
adriadam10 force-pushed the perf/agc-draw-path-locks branch from c4a6636 to 7074425 Compare October 23, 2026 07:32
@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 23, 2026
@Meh7an
Meh7an force-pushed the perf/agc-draw-path-locks branch from 7074425 to 2659ec3 Compare October 23, 2026 08:51
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 23, 2026
@adriadam10
adriadam10 merged commit e5ca730 into boykopovar:main Oct 23, 2026
17 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the rebased head against current main: same patch as the reviewed one; the remaining std::mutexes are the ones a condition_variable waits with or that the context hands out as std::mutex*; the Mutex, use gate, GPU mutex recursion, thread slots and agc_locks test were reviewed earlier; merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* build libc perf Performance change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants