Skip to content

perf(agc): draws that only update a buffer atomically continue one render pass - #9852

Open
EdouardSence wants to merge 15 commits into
boykopovar:mainfrom
EdouardSence:perf/atomic-only-passes
Open

EdouardSence wants to merge 15 commits into
boykopovar:mainfrom
EdouardSence:perf/atomic-only-passes

Conversation

@EdouardSence

@EdouardSence EdouardSence commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What

In ASTRO BOT's Sky Garden, one vertex shader that most draws use updates a 32-record counter buffer with buffer atomics. The recompiler counts an atomic element as both read and written, so every draw after the first saw a read-after-write hazard on the open render pass and began a new pass. Since #15887, main also stages that counter through a device-local buffer for draws; the staged copy-in and copy-back each end the open pass (PassBreak::Command). On main f42d8b4a44, about 45K of the 265K to 275K draws per 10 s begin a render pass, 37K of them for a command; with this change about 10.7K of 290K to 300K draws, 2.1K for a command.

This is the atomic counterpart of #7340, which left atomic buffers out on purpose.

  • Recompiler: BufferResource::plain records any non-atomic access of a buffer (Merge). DescriptorBinding::bufferAtomicOnly marks an element whose every access is an atomic: atomic, not plain, and not aliased by an image (imageAlias). The shader disk cache stores both.
  • Binding: a draw binds its bufferAtomicOnly elements of host imports in place (Region::inPlace, checked by GuestBufferMemory::stagingWanted) instead of staging them. Dispatches keep staging them (the histogram kernels atomic staging was added for have no render pass), and an element a draw also loads or stores stays staged. APS5_DRAW_ATOMIC_STAGING=1 restores staging for draws.
  • ShaderResources::AtomicOnlyRanges(): the guest ranges of atomic-only elements that no other allocation of the draw overlaps, built like WriteOnlyRanges().
  • At record time, recordDraw keeps only the ranges whose every write by the draw lands in a host import bound in place (GuestBufferMemory::WrittenInPlace). A CPU copy already makes the draw unknownMemory, and a GPU copy or a staged copy keeps the previous behaviour. recordDraw takes the kept ranges out of the draw's hazard reads and writes and passes them as PassAccess::atomics. The recorder's write tracking (NoteAccess, pending writes) still sees them as written.
  • PassHazards:
    • Atomic ranges conflict with reads (read after write) and with read-write and write-only uses (write after write), in both directions, and with unknown reads or writes.
    • Atomic ranges of different draws over the same bytes do not conflict. The guest GPU leaves atomics of draws that no barrier separates unordered as well.
    • SealWriteOnly() also moves the open pass's atomic ranges into its writes. A flush packet between two draws still orders their atomics.
  • recordDraw also keeps the device read count up to date after the write-only erase, so the atomic erase stays within the draw's own device reads.
  • APS5_NO_ATOMIC_PASSES=1 restores the previous hazard rule.

Overlaps (textual only; whichever lands second adapts):

  • Shader disk cache format: main f42d8b4a44 and current main e917850d23 are at 68; this PR writes 69. An open PR that bumps the same FormatVersion line takes the next free version after whichever lands first.
  • git merge-tree of this head against current main e917850d23 is clean. tools/pr_overlap.py lists open PRs that touch the same files (mostly the docs/dev/ENVIRONMENT.md table); none implements the same change.

Tested

Exact revisions: this PR at a4e218f8cd. The main side is f42d8b4a44, the main that this head last merged (its merge-base with main), so the two builds differ only by this PR.

  • Linux (CachyOS, kernel 7.3.1), GCC, Release, RX 9070 XT (RADV Mesa 26.2.5), Ryzen 7 7800X3D, 31 GiB.
  • Focused tests on both revisions, same machine and GPU, with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer ctest --test-dir build -R <pattern> -V:
    • The set: agc_driver_buffer_atomics, agc_driver_global_atomics, agc_driver_recorded_draw_staging, agc_driver_graphics, agc_driver_recorder, agc_pass_hazards, agc_shader_disk_cache. This branch adds agc_driver_atomic_passes and agc_driver_atomic_passes_split, which do not exist on main.
    • main passes 6 and this branch 8; agc_driver_recorded_draw_staging skips on both (this device does not keep host imports write-watched). Neither log has a VUID- line or was not found but was requested by env var VK_INSTANCE_LAYERS, and in both the loader loads VkLayer_khronos_validation.json. Logs: main, this PR.
  • New tests:
    • agc_driver_atomic_passes (tests/execution/AtomicPasses.cpp): a pixel shader adds 1 into one counter with buffer_atomic_add. One draw adds Width×Height. Two consecutive draws into a host-imported counter add twice that, and the second continues the first's pass. Two draws into a copied counter (not a guest allocation) add twice that, and the second begins a new pass. agc_driver_atomic_passes_split runs the same with APS5_NO_ATOMIC_PASSES=1, where no draw continues and both sums still match.
    • agc_driver_recorder: a 64-byte atomic counter added as a draw's atomic-only element is bound in place and WrittenInPlace reports it; added as a plain atomic element it is staged.
    • testAtomics in agc_pass_hazards covers each hazard pair and the seal.
    • agc_shader_disk_cache round-trips bufferAtomicOnly and checks it in the binding plan.
  • Speed setup:
    • ASTRO BOT PPSA21567 01.019.000, Sky Garden (-lvl underwater_aerial_garden), headless gamescope 3840×2160, title defaults, no input, 180 s per run.
    • APS5_NO_SNAPSHOT_CHECK=1 APS5_HOST_IMPORT_MIB=11815 APS5_PROFILE_DRAW=1 APS5_TRACE_SUMMARY_EVERY=10 APS5_TRACE_EVENTS=4194304 APS5_TRACE_SECONDS=40:25 on both sides.
    • Each revision has its own relinked run directory and shader cache. One discarded warm-up run per side, then main, PR, main, PR.
    • Every run of both revisions drops to 1 to 8 presents per 10 s at some point after the fly-in (between 60 and 145 s, the shape perf: ASTRO BOT (PPSA21567) first level drops from 3 to 0.7 FPS as the device-local heap fills; with the staging switches off it holds 3.3 FPS #18020 describes on Windows), and some recover. The table uses the 10 s intervals of the fly-in before that drop, without the level's first interval.
Build intervals presents / 10 s frame p50 ms GPU busy ms/present render passes begun / 10 s of them command
main f42d8b4a44, round 1 30-60 s 45 to 46 218 to 223 138.3 to 143.8 44807 to 45226 36965 to 37414
this PR a4e218f8cd, round 1 40-60 s 51 to 52 196 101.5 to 101.8 10865 to 10893 2088 to 2106
main, round 2 30-91 s 46 to 47 217 to 221 138.1 to 144.4 44593 to 45577 36859 to 37805
this PR, round 2 57-118 s 50 to 53 190 to 202 102.2 to 103.3 10467 to 10993 1992 to 2225

The 25 s trace windows (trace_digest.py and performance_compare.py):

Round main p50 / p90 ms, GPU this PR p50 / p90 ms, GPU
1 219.0 / 223.9, 143.9 195.8 / 199.7, 101.6
2 219.4 / 223.1, 142.3 203.7 / 224.7, 120.7

The PR's round 2 run took about 15 s longer to load, so its window starts with the level's first slow interval (155 ms GPU) and ends at 65 s; the 10 s intervals after it stay at 102 to 103 ms. Round 1's main window ends as that run's drop begins (one 3.4 s frame) and the PR's has one 5.2 s frame; p99 and max in those windows come from those single frames. No trace dropped events.

Frame p50 drops by about 10 % and GPU time per present by about 29 %; render passes begun drop by about 76 %. The queue workers stay at ~99 % on both sides.

Artifacts for all four runs (release): traces, aps5-summary.jsonl, trace_digest.py output, and the performance_compare.py output of each round. Round 1 summary lines:

{"commit":"f42d8b4a447f","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"11815","APS5_NO_SNAPSHOT_CHECK":"1","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"40:25","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 9070 XT (RADV GFX1201)","driver":"radv Mesa 26.2.5-arch3.1","os":"Linux 7.3.1-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31227,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"seconds 40:25","first_present":502,"ms":25391.530},"presents":97,"frame_ms":{"p50":218.978,"p90":223.867,"p99":3449.562,"max":3449.562},"gpu_busy_ms_per_present":143.887,"worker_busy_pct":{"queue worker 0x0":98.617,"queue worker 0x48":87.305,"queue worker 0x40":98.323,"queue worker 0x46":0.352},"top_phases_ms_per_frame":{"Driver.Packet":743.569,"Driver.Packet.memory_wait":436.728,"Driver.Packet.draw":212.982,"Driver.Draw":211.468,"Graphics.Draw":165.893,"Graphics.Draw.draw_and_resource_release":144.631,"Driver.Draw.shader_compile_and_link":97.187,"Driver.Draw.draw_enqueued":94.765},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-f42d8b4a447f-339619.json.gz"}
{"commit":"a4e218f8cdb4","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"11815","APS5_NO_SNAPSHOT_CHECK":"1","APS5_PROFILE_DRAW":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"4194304","APS5_TRACE_SECONDS":"40:25","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"AMD Radeon RX 9070 XT (RADV GFX1201)","driver":"radv Mesa 26.2.5-arch3.1","os":"Linux 7.3.1-1-cachyos","cpu":"AMD Ryzen 7 7800X3D 8-Core Processor","cpu_threads":16,"memory_mib":31227,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"seconds 40:25","first_present":466,"ms":26013.739},"presents":107,"frame_ms":{"p50":195.816,"p90":199.718,"p99":205.315,"max":5212.140},"gpu_busy_ms_per_present":101.648,"worker_busy_pct":{"queue worker 0x0":98.592,"queue worker 0x48":80.709,"queue worker 0x40":99.905,"queue worker 0x46":0.316},"top_phases_ms_per_frame":{"Driver.Packet":678.196,"Driver.Packet.memory_wait":425.483,"Driver.Packet.draw":195.238,"Driver.Draw":193.727,"Graphics.Draw":164.756,"Graphics.Draw.draw_and_resource_release":143.956,"Driver.Draw.shader_compile_and_link":95.814,"Shader.DrawStage":80.336},"owned_draw_counts":{},"trace_dropped":false,"trace":"aps5-trace-a4e218f8cdb4-343655.json.gz"}
  • Windows, same GPU: BunnyFl's run of this head with and without APS5_DRAW_ATOMIC_STAGING=1 (in the conversation) shows the same direction: about a quarter of the render passes and ~100 against ~177 ms GPU per present.
  • Not tested: NVIDIA, Intel, other titles.

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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: AMD Radeon RX 9070 XT, RADV Mesa 26.2.5, Linux 7.3.1 (CachyOS)
  • AI-assisted: yes

@github-actions github-actions Bot added the perf Performance change label Oct 22, 2026
@oneandonlydean oneandonlydean self-assigned this Oct 22, 2026
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

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 862 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1368 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1896 docs/dev/ENVIRONMENT.md
PR 4448 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 4472 docs/dev/ENVIRONMENT.md
PR 5371 core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 5372 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 6186 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Recompiler.hpp
PR 6192 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 6209 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6235 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.hpp
PR 6280 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 6340 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6412 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 6481 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6488 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 6924 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 7002 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 7085 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7275 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 7643 docs/dev/ENVIRONMENT.md
PR 7668 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7684 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 7689 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 8246 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 8939 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 9289 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 9318 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 9345 docs/dev/ENVIRONMENT.md
PR 9356 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 9387 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 9457 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 9508 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 9592 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 9633 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 9712 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 9749 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 9790 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 9897 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/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9915 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9969 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 10193 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 10351 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 10359 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 10442 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/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 10492 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 10497 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 10652 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 10743 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 10867 core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
PR 10894 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
docs/dev/ENVIRONMENT.md
PR 11435 docs/dev/ENVIRONMENT.md
PR 11436 docs/dev/ENVIRONMENT.md
PR 11444 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 11452 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 11483 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 11551 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 11825 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 12157 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 12324 core/shader/recompiler/Recompiler.cpp
docs/dev/ENVIRONMENT.md
PR 12544 docs/dev/ENVIRONMENT.md
PR 12575 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 12746 docs/dev/ENVIRONMENT.md
PR 12827 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 12828 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 12840 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Recompiler.cpp
docs/dev/ENVIRONMENT.md
PR 12849 docs/dev/ENVIRONMENT.md
PR 12863 docs/dev/ENVIRONMENT.md
PR 12944 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 13147 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 13148 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 13251 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 13796 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 13809 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 13863 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 13920 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 13928 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 13929 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 14032 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/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 14217 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 14218 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 14260 docs/dev/ENVIRONMENT.md
PR 14262 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 14853 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 14871 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 14944 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/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 14964 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 15136 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 15295 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 15296 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 15297 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 15343 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 15456 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 15505 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 15529 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 15548 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 15555 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 15570 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 15572 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 15621 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 15936 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 16217 docs/dev/ENVIRONMENT.md
PR 16260 core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 16354 docs/dev/ENVIRONMENT.md
PR 16371 docs/dev/ENVIRONMENT.md
PR 16372 docs/dev/ENVIRONMENT.md
PR 16391 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 16415 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
PR 16427 docs/dev/ENVIRONMENT.md
PR 16472 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 16631 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 16793 docs/dev/ENVIRONMENT.md
PR 16812 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 16814 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 16831 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 16879 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 16935 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 16953 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
docs/dev/ENVIRONMENT.md
PR 17022 core/shader/recompiler/Recompiler.hpp
PR 17056 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 17259 docs/dev/ENVIRONMENT.md
PR 17261 docs/dev/ENVIRONMENT.md
PR 17555 docs/dev/ENVIRONMENT.md
PR 17556 docs/dev/ENVIRONMENT.md
PR 17557 docs/dev/ENVIRONMENT.md
PR 17558 docs/dev/ENVIRONMENT.md
PR 17611 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 17719 docs/dev/ENVIRONMENT.md
PR 17729 docs/dev/ENVIRONMENT.md
PR 17943 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 18029 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 18082 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 18106 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 18107 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 18173 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 18177 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 18185 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
PR 18226 docs/dev/ENVIRONMENT.md
PR 18293 docs/dev/ENVIRONMENT.md
PR 18390 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 18693 docs/dev/ENVIRONMENT.md
PR 18829 docs/dev/ENVIRONMENT.md
PR 19096 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 19130 docs/dev/ENVIRONMENT.md
PR 19351 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 19429 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 19620 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 19686 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 19697 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 19710 core/shader/recompiler/Recompiler.hpp
PR 19722 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 19821 core/shader/recompiler/Recompiler.hpp
PR 19852 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/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 19967 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ENVIRONMENT.md
PR 20010 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 20030 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 20041 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 20070 core/shader/recompiler/Recompiler.hpp
PR 20111 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 20130 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 20153 core/shader/recompiler/Recompiler.hpp
PR 20172 docs/dev/ENVIRONMENT.md
PR 20186 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 20248 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ENVIRONMENT.md
PR 20315 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 20344 docs/dev/ENVIRONMENT.md
PR 20518 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.hpp
docs/dev/ENVIRONMENT.md
PR 20519 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/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 20580 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 20728 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 20831 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 20891 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 20944 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 21018 core/shader/recompiler/Recompiler.hpp
PR 21087 docs/dev/ENVIRONMENT.md
PR 21180 core/shader/recompiler/Recompiler.cpp
PR 21199 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 21211 docs/dev/ENVIRONMENT.md
PR 21225 docs/dev/ENVIRONMENT.md
PR 21238 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 21303 docs/dev/ENVIRONMENT.md
PR 21460 docs/dev/ENVIRONMENT.md
PR 21499 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 21649 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/ENVIRONMENT.md
PR 21656 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 21745 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 21746 docs/dev/ENVIRONMENT.md
PR 21763 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 21776 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 21780 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 21923 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 21960 docs/dev/ENVIRONMENT.md
PR 21963 docs/dev/ENVIRONMENT.md
PR 21965 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 21970 core/shader/recompiler/ShaderDiskCache.hpp
PR 21971 core/shader/recompiler/ShaderDiskCache.hpp
PR 22018 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 22025 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 22063 core/shader/recompiler/Recompiler.cpp
PR 22065 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 22071 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
docs/dev/ENVIRONMENT.md
PR 22075 docs/dev/ENVIRONMENT.md
PR 22140 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 22190 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 22251 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 22306 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 22328 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 22411 docs/dev/ENVIRONMENT.md
PR 22424 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/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 22434 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
docs/dev/ENVIRONMENT.md
PR 22439 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 22493 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ENVIRONMENT.md
PR 22546 docs/dev/ENVIRONMENT.md
PR 22550 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
PR 22583 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 22602 core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 22604 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 22628 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/Resources.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 22647 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
docs/dev/ENVIRONMENT.md
PR 22675 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 22690 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 22692 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 22697 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 22703 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 22750 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 22767 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
docs/dev/ENVIRONMENT.md
PR 22822 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 22944 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
docs/dev/ENVIRONMENT.md
PR 22995 docs/dev/ENVIRONMENT.md
PR 23058 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 23122 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/ENVIRONMENT.md
PR 23234 core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 23242 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 23243 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 23244 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 23258 core/shader/recompiler/Recompiler.hpp
PR 23281 core/shader/recompiler/Recompiler.hpp
PR 23343 core/shader/recompiler/Recompiler.cpp
PR 23344 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceTracker.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ENVIRONMENT.md
PR 23360 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 23409 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 23445 docs/dev/ENVIRONMENT.md
PR 23486 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 23519 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 23545 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 23553 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.hpp
PR 23596 core/libs/prx/libSceAgcDriver/Graphics/include/GuestBufferMemory.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cpp
docs/dev/ENVIRONMENT.md
PR 23644 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
PR 23688 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 23701 core/shader/recompiler/Optimization/src/ResourceTracker.cpp
Report truncated: 107 more lines omitted.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@EdouardSence thanks, the hazard rules read correctly to us: only atomic-vs-atomic over the same bytes stops splitting the pass, a later plain read, write or write-only store still splits it both ways, indirect-argument reads still count, and a flush seals the atomics into writes. Guest buffer atomics are emitted at device scope, so updates from different draws in one pass don't race without a barrier.

Two things before we run CI and the gate:

  1. A test on the draw path. testAtomics checks PassHazards on its own, so nothing shows that two real draws continue one pass and that both draws' atomics land. Could you add an execution test with two consecutive draws whose shader atomically adds into the same counter element of a host-imported buffer, asserting that:

    • the second draw continued the first draw's pass (DrawOutcome::passContinued, or the [draws] continued count), and
    • the counter afterwards equals the sum of both draws' adds.

    A main control is easy to state: with APS5_NO_ATOMIC_PASSES=1 the second draw begins a new pass and the sum still matches.

  2. CPU-copied regions. atomicOnly only requires guest && written. Can an atomic-only element of a draw be a CPU copy, i.e. a region outside a host import or above APS5_GPU_COPY_MAX_KIB? If so, two continued draws would each update their own copy and one draw's increments would be lost at copy-back. If that case can occur, please either leave copied allocations out of atomicOnly or point us to the ordering that covers it, and add the same test with a non-imported buffer.

@EdouardSence

Copy link
Copy Markdown
Contributor Author

@oneandonlydean thanks for the review. Both points are in b683b2f.

1. A test on the draw path. New tests/execution/AtomicPasses.cpp (agc_driver_atomic_passes):

  • The pixel shader adds 1 with buffer_atomic_add into a one-record counter, so one draw over the 64×32 target adds 2048. The test checks that first.
  • Two consecutive draws into a host-imported counter: the counter ends at 4096, and per DrawPassTotals() (with APS5_PROFILE_DRAW=1) exactly 1 of the 2 draws continued a pass.
  • agc_driver_atomic_passes_split runs the same binary with APS5_NO_ATOMIC_PASSES=1: 0 of the 2 draws continue, and the counter is still 4096.
  • The host-imported case expects a continued draw only where draw inputs bind in place (DrawInputsInPlace()), as agc_driver_pass_input_hazard does.

2. CPU-copied regions. That case could not lose increments before this change either:

  • A written element in a CPU copy makes HasCopiedWrites() true, so the draw is unknownMemory and the atomic path never ran for it.
  • A GPU copy records its copy-in and its copy-back as transfers. Those end the open pass, so two draws never share one with it.
  • Device-local staging of atomic elements is only allowed for dispatches (AllowDeviceStaging).

To make this explicit rather than implied, an atomic-only range now joins the pass's atomics only when every write of the draw over it lands in a host import bound in place. GuestBufferMemory::WrittenInPlace checks this at record time, after PrepareDrawBindings. The test covers the copied case too: a counter outside any guest allocation, where both draws begin a pass and the sum matches.

On the RX 9070 XT (RADV Mesa 26.2.4), with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation:

  • The focused set (now 24 tests, with agc_driver_pass_input_hazard, agc_driver_address_passes* and the two new ones) passes.
  • There is no VUID- line and no missing-layer line.

Sky Garden with the new head still begins ~211 render passes per present ([gputime]), and frame p50 is 249 ms, so the restriction keeps the gain there.

Written by Claude (AI assistant) on a contributor's machine.
AI-assisted: yes

@MarcZX10

Copy link
Copy Markdown
Contributor

This is a substantial, well-evidenced performance change: the diff includes the draw-path counter test, hazard cases, cache round-trip coverage, and same-machine traces. The tested baseline is b7d1d47a5, however, and the head is now 143 commits behind current main (3bbd2321). Because this touches AGC and shader-recompiler behavior, please rebase and rerun the focused test set with the required Vulkan validation settings on current main and the final head, then refresh the same-scene A/B against current main. Several listed overlaps have also had time to advance, so please recheck the exact interaction/order after rebasing. This is a request for current-head evidence, not a request to close the PR.

EdouardSence and others added 2 commits October 22, 2026 22:27
…nder pass

A guest buffer element the recompiler proves is only accessed through
atomics (BufferResource::plain is false) and that no other allocation of
the draw overlaps is passed to PassHazards as an atomic range. Atomic
ranges of different draws over the same bytes do not conflict; they
conflict with reads, read-write uses and write-only stores in both
directions, and a flush packet seals them like write-only stores.

APS5_NO_ATOMIC_PASSES=1 restores the previous behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ting draws

An atomic-only range joins the pass's atomics only when every write of
the draw over it lands in a host import bound in place
(GuestBufferMemory::WrittenInPlace). A copied region (a CPU copy, a GPU
copy before its copy-back) keeps the previous behaviour.

agc_driver_atomic_passes records two draws whose pixel shader adds 1
into one counter, once in a host import and once in a copied buffer, and
checks the counter and how many draws continued a pass;
agc_driver_atomic_passes_split runs it with APS5_NO_ATOMIC_PASSES=1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@EdouardSence
EdouardSence force-pushed the perf/atomic-only-passes branch from b683b2f to 106ffd2 Compare October 22, 2026 20:28
@EdouardSence

Copy link
Copy Markdown
Contributor Author

@MarcZX10 thanks. The branch is rebased onto current main 1da03c6, now at 106ffd2. The rebase was clean, and check_conventions.py --base origin/main passes. The only commit on main since the old base that touches the shader-recompiler files this PR changes is 1bf43f9 (flatP20). It adds a field to the interpolant parameters, not to DescriptorBinding or BufferResource, so the cache-layout asserts here are unaffected. It was also already in the tree of the A/B I posted on #6617 an hour ago (main a6646f8 + this PR), which built and ran 8 Sky Garden runs cleanly.

Next I'll post, on 106ffd2 and on main:

  • the focused test set with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation;
  • the Sky Garden A/B against main;
  • a recheck of the overlap order.

Written by Claude (AI assistant) on a contributor's machine.
AI-assisted: yes

@MarcZX10

Copy link
Copy Markdown
Contributor

Following up on the planned final-head evidence: the branch remains at 106ffd2a based on 1da03c6f, while upstream main is now 8aa44cf3 (compare is 87 commits behind). I do not see the promised current-main/final-head Vulkan validation run or refreshed Sky Garden A/B in the updated discussion/body yet. When available, please include the same focused test set on both exact revisions, validation-layer output, same-scene summaries/traces without dropped events, and the refreshed overlap/merge-order check. The implementation review points you addressed remain resolved; this is to make the required GPU-change evidence current.

@MarcZX10

Copy link
Copy Markdown
Contributor

I refreshed the comparison against current upstream main 9a030c2d. Since the branch's base 1da03c6f, upstream has added state.truncatedCoverage to DrawRenderPassKey and state.vertexPoints to ValidationKey in the same Draw.cpp this change modifies; it also added test registrations in the touched CMake file and vertex-point metadata in Recompiler.hpp. These are separate changes, but the reported Vulkan runs and same-scene performance pair predate them. The earlier request for current-main/final-head focused validation and a refreshed A/B is still open; please preserve these newer changes on rebase and report the exact revisions and results. I have not independently rerun GPU tests here.

@MarcZX10

Copy link
Copy Markdown
Contributor

Cache format review: this PR adds serialized fields (bufferAtomicOnly and BufferResource::plain) in ShaderDiskCache.cpp, but its branch currently keeps FormatVersion at 44. Main is v44, so existing cache files would be read using the changed field layout unless the format is incremented. Other open schema PRs (#7831, #9889, #9897) also change serialized layouts and use v45 on their current bases; please coordinate their merge order and bump this PR to the next version on its rebased base.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 23, 2026
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 23, 2026
…ing fields

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@EdouardSence

Copy link
Copy Markdown
Contributor Author

@MarcZX10 @oneandonlydean the final-head evidence is up, and the description now has it.

Tested and written by Claude (AI assistant) on a contributor's machine.
AI-assisted: yes

@panicDa3m0n

Copy link
Copy Markdown

@EdouardSence, a second GPU vendor for the final head 8c5ed65: NVIDIA on Windows, ASTRO BOT at Crash Site.

  • Machine: Windows 11 (10.0.26200), NVIDIA GeForce RTX 4070 Ti SUPER, driver 616.64, Intel Core i7-11700K. ASTRO BOT (PPSA21567) 01.019.000, 3840x2160.
  • Builds: main 9446779, this PR's base, against this head 8c5ed65. Both in the same session, with one discarded warm-up run per build (main first), four rounds in ABBA order and no driver reset.
  • Capture: APS5_TRACE_SECONDS=150:5 and APS5_HOST_IMPORT_MIB=13312, nothing else; warm caches. stdout and stderr went to files through the launcher (Start-Process -RedirectStandardOutput), the same for every run.
  • Eight main runs instead of four: the main warm-up window started at present 5011, so the window band set from it was wrong, and each main run was repeated right after it. All main windows start between presents 2621 and 3402 and this PR's between 2672 and 2793, so all twelve runs are kept.
Round Position Build Window from present Frame p50 (ms) GPU busy per present (ms)
1 1st main 3198 178.8 156.6
1 2nd main, again 2692 173.9 154.6
1 3rd this PR 2672 172.4 149.0
2 1st this PR 2718 174.4 151.3
2 2nd main 2710 171.9 160.8
2 3rd main, again 2704 171.9 158.4
3 1st main 3402 179.1 157.5
3 2nd main, again 2621 190.3 172.6
3 3rd this PR 2793 170.4 151.7
4 1st this PR 2718 162.7 153.2
4 2nd main 2729 162.6 144.9
4 3rd main, again 2694 171.2 150.6

Medians: frame p50 172.9 ms on main (eight runs) against 171.4 ms with this PR (four runs); GPU busy 157.1 against 151.5 ms per present.

Reading (AI-assisted)

  • GPU busy per present is about 5.6 ms lower with this PR on this NVIDIA card. It is lower in three of the four rounds against either main run of the round.
  • The frame p50 stays within the run-to-run spread. On this machine the frame p50, about 172 ms, sits above GPU busy, about 155 ms, so the GPU is idle for part of each frame and a GPU saving does not have to show in the frame.
Summary lines, in run order
{"commit":"944677990663","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"13312","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"150:5"},"gpu":"NVIDIA GeForce RTX 4070 Ti SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","cpu":"11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz","cpu_threads":16,"memory_mib":32599,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"seconds 150:5","first_present":3198,"ms":5142.123},"presents":29,"frame_ms":{"p50":178.758,"p90":186.994,"p99":190.785,"max":190.785},"gpu_busy_ms_per_present":156.601,"worker_busy_pct":{"queue worker 0x0":98.685,"queue worker 0x40":98.147,"queue worker 0x48":94.295,"queue worker 0x46":9.694},"top_phases_ms_per_frame":{"Driver.Packet":532.940,"Driver.Packet.memory_wait":302.915,"Driver.Packet.draw":90.033,"Driver.Draw":89.217,"Graphics.Draw":83.601,"Graphics.Draw.draw_and_resource_release":66.371,"Driver.Packet.prepare_memory":61.761,"Driver.Packet.dispatch":56.382},"trace_dropped":false,"trace":"aps5-trace-944677990663-23796.json.gz"}
{"commit":"944677990663","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"13312","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"150:5"},"gpu":"NVIDIA GeForce RTX 4070 Ti SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","cpu":"11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz","cpu_threads":16,"memory_mib":32599,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"seconds 150:5","first_present":2692,"ms":5033.119},"presents":29,"frame_ms":{"p50":173.898,"p90":181.812,"p99":183.157,"max":183.157},"gpu_busy_ms_per_present":154.584,"worker_busy_pct":{"queue worker 0x0":98.694,"queue worker 0x40":97.738,"queue worker 0x48":94.087,"queue worker 0x46":9.521},"top_phases_ms_per_frame":{"Driver.Packet":520.324,"Driver.Packet.memory_wait":298.244,"Driver.Packet.draw":85.116,"Driver.Draw":84.298,"Graphics.Draw":82.761,"Graphics.Draw.draw_and_resource_release":65.361,"Driver.Packet.dispatch":58.960,"Driver.Dispatch":56.107},"trace_dropped":false,"trace":"aps5-trace-944677990663-25244.json.gz"}
{"commit":"8c5ed656dcad","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"13312","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"150:5"},"gpu":"NVIDIA GeForce RTX 4070 Ti SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","cpu":"11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz","cpu_threads":16,"memory_mib":32599,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"seconds 150:5","first_present":2672,"ms":5150.095},"presents":30,"frame_ms":{"p50":172.443,"p90":178.332,"p99":183.584,"max":183.584},"gpu_busy_ms_per_present":148.992,"worker_busy_pct":{"queue worker 0x0":98.781,"queue worker 0x40":98.023,"queue worker 0x48":94.232,"queue worker 0x46":8.258},"top_phases_ms_per_frame":{"Driver.Packet":513.378,"Driver.Packet.memory_wait":294.526,"Driver.Packet.draw":86.167,"Driver.Draw":85.372,"Graphics.Draw":82.629,"Graphics.Draw.draw_and_resource_release":65.616,"Driver.Packet.prepare_memory":61.068,"Driver.Packet.dispatch":50.906},"trace_dropped":false,"trace":"aps5-trace-8c5ed656dcad-29176.json.gz"}
{"commit":"8c5ed656dcad","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"13312","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"150:5"},"gpu":"NVIDIA GeForce RTX 4070 Ti SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","cpu":"11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz","cpu_threads":16,"memory_mib":32599,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"seconds 150:5","first_present":2718,"ms":5054.761},"presents":29,"frame_ms":{"p50":174.365,"p90":185.160,"p99":199.627,"max":199.627},"gpu_busy_ms_per_present":151.325,"worker_busy_pct":{"queue worker 0x0":98.771,"queue worker 0x40":97.942,"queue worker 0x48":93.762,"queue worker 0x46":10.625},"top_phases_ms_per_frame":{"Driver.Packet":524.365,"Driver.Packet.memory_wait":296.043,"Driver.Packet.draw":90.060,"Driver.Draw":89.249,"Graphics.Draw":86.018,"Graphics.Draw.draw_and_resource_release":68.286,"Driver.Packet.prepare_memory":61.410,"Driver.Packet.dispatch":54.265},"trace_dropped":false,"trace":"aps5-trace-8c5ed656dcad-20056.json.gz"}
{"commit":"944677990663","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"13312","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"150:5"},"gpu":"NVIDIA GeForce RTX 4070 Ti SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","cpu":"11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz","cpu_threads":16,"memory_mib":32599,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"seconds 150:5","first_present":2710,"ms":5131.521},"presents":30,"frame_ms":{"p50":171.941,"p90":179.736,"p99":182.330,"max":182.330},"gpu_busy_ms_per_present":160.779,"worker_busy_pct":{"queue worker 0x0":98.726,"queue worker 0x40":97.482,"queue worker 0x48":94.267,"queue worker 0x46":8.299},"top_phases_ms_per_frame":{"Driver.Packet":510.639,"Driver.Packet.memory_wait":290.265,"Driver.Packet.draw":86.535,"Driver.Draw":85.763,"Graphics.Draw":81.043,"Graphics.Draw.draw_and_resource_release":64.217,"Driver.Packet.prepare_memory":59.802,"Driver.Packet.dispatch":52.926},"trace_dropped":false,"trace":"aps5-trace-944677990663-19412.json.gz"}
{"commit":"944677990663","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"13312","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"150:5"},"gpu":"NVIDIA GeForce RTX 4070 Ti SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","cpu":"11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz","cpu_threads":16,"memory_mib":32599,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"seconds 150:5","first_present":2704,"ms":5120.452},"presents":30,"frame_ms":{"p50":171.943,"p90":176.953,"p99":179.997,"max":179.997},"gpu_busy_ms_per_present":158.418,"worker_busy_pct":{"queue worker 0x0":98.739,"queue worker 0x40":98.034,"queue worker 0x48":87.583,"queue worker 0x46":6.669},"top_phases_ms_per_frame":{"Driver.Packet":496.334,"Driver.Packet.memory_wait":282.913,"Driver.Packet.draw":84.754,"Driver.Draw":83.972,"Graphics.Draw":82.834,"Graphics.Draw.draw_and_resource_release":65.745,"Driver.Packet.prepare_memory":56.050,"Driver.Packet.dispatch":51.747},"trace_dropped":false,"trace":"aps5-trace-944677990663-24896.json.gz"}
{"commit":"944677990663","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"13312","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"150:5"},"gpu":"NVIDIA GeForce RTX 4070 Ti SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","cpu":"11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz","cpu_threads":16,"memory_mib":32599,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"seconds 150:5","first_present":3402,"ms":5172.917},"presents":29,"frame_ms":{"p50":179.097,"p90":192.011,"p99":193.560,"max":193.560},"gpu_busy_ms_per_present":157.542,"worker_busy_pct":{"queue worker 0x0":98.740,"queue worker 0x40":97.754,"queue worker 0x48":94.260,"queue worker 0x46":7.917},"top_phases_ms_per_frame":{"Driver.Packet":532.313,"Driver.Packet.memory_wait":307.415,"Driver.Packet.draw":89.067,"Driver.Draw":88.253,"Graphics.Draw":86.945,"Graphics.Draw.draw_and_resource_release":68.897,"Driver.Packet.prepare_memory":58.059,"Driver.Packet.dispatch":54.851},"trace_dropped":false,"trace":"aps5-trace-944677990663-15072.json.gz"}
{"commit":"944677990663","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"13312","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"150:5"},"gpu":"NVIDIA GeForce RTX 4070 Ti SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","cpu":"11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz","cpu_threads":16,"memory_mib":32599,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"seconds 150:5","first_present":2621,"ms":5074.960},"presents":27,"frame_ms":{"p50":190.293,"p90":195.739,"p99":196.898,"max":196.898},"gpu_busy_ms_per_present":172.618,"worker_busy_pct":{"queue worker 0x0":98.861,"queue worker 0x40":97.732,"queue worker 0x48":93.647,"queue worker 0x46":10.834},"top_phases_ms_per_frame":{"Driver.Packet":565.507,"Driver.Packet.memory_wait":327.108,"Driver.Packet.draw":80.897,"Driver.Draw":80.149,"Graphics.Draw":80.004,"Driver.Packet.prepare_memory":70.996,"Driver.Packet.dispatch":65.897,"Graphics.Draw.draw_and_resource_release":63.589},"trace_dropped":false,"trace":"aps5-trace-944677990663-31540.json.gz"}
{"commit":"8c5ed656dcad","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"13312","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"150:5"},"gpu":"NVIDIA GeForce RTX 4070 Ti SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","cpu":"11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz","cpu_threads":16,"memory_mib":32599,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"seconds 150:5","first_present":2793,"ms":5055.027},"presents":30,"frame_ms":{"p50":170.428,"p90":178.857,"p99":179.149,"max":179.149},"gpu_busy_ms_per_present":151.672,"worker_busy_pct":{"queue worker 0x0":98.803,"queue worker 0x40":97.727,"queue worker 0x48":94.687,"queue worker 0x46":9.367},"top_phases_ms_per_frame":{"Driver.Packet":506.082,"Driver.Packet.memory_wait":287.779,"Driver.Packet.draw":84.018,"Driver.Draw":83.239,"Graphics.Draw":80.956,"Graphics.Draw.draw_and_resource_release":64.441,"Driver.Packet.prepare_memory":56.746,"Driver.Packet.dispatch":55.098},"trace_dropped":false,"trace":"aps5-trace-8c5ed656dcad-19088.json.gz"}
{"commit":"8c5ed656dcad","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"13312","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"150:5"},"gpu":"NVIDIA GeForce RTX 4070 Ti SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","cpu":"11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz","cpu_threads":16,"memory_mib":32599,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"seconds 150:5","first_present":2718,"ms":5042.722},"presents":31,"frame_ms":{"p50":162.730,"p90":168.773,"p99":172.661,"max":172.661},"gpu_busy_ms_per_present":153.234,"worker_busy_pct":{"queue worker 0x0":98.771,"queue worker 0x40":97.873,"queue worker 0x48":94.423,"queue worker 0x46":9.237},"top_phases_ms_per_frame":{"Driver.Packet":488.119,"Driver.Packet.memory_wait":281.595,"Graphics.Draw":78.884,"Driver.Packet.draw":78.269,"Driver.Draw":77.513,"Graphics.Draw.draw_and_resource_release":62.619,"Driver.Packet.prepare_memory":60.261,"Driver.Packet.dispatch":47.389},"trace_dropped":false,"trace":"aps5-trace-8c5ed656dcad-18140.json.gz"}
{"commit":"944677990663","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"13312","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"150:5"},"gpu":"NVIDIA GeForce RTX 4070 Ti SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","cpu":"11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz","cpu_threads":16,"memory_mib":32599,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"seconds 150:5","first_present":2729,"ms":5012.057},"presents":31,"frame_ms":{"p50":162.567,"p90":168.915,"p99":171.193,"max":171.193},"gpu_busy_ms_per_present":144.935,"worker_busy_pct":{"queue worker 0x0":98.694,"queue worker 0x40":97.948,"queue worker 0x48":94.510,"queue worker 0x46":9.018},"top_phases_ms_per_frame":{"Driver.Packet":484.923,"Driver.Packet.memory_wait":279.318,"Driver.Packet.draw":80.994,"Driver.Draw":80.238,"Graphics.Draw":79.591,"Graphics.Draw.draw_and_resource_release":63.015,"Driver.Packet.prepare_memory":53.092,"Driver.Packet.dispatch":51.069},"trace_dropped":false,"trace":"aps5-trace-944677990663-28828.json.gz"}
{"commit":"944677990663","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"13312","APS5_TRACE_DIR":"<path>","APS5_TRACE_SECONDS":"150:5"},"gpu":"NVIDIA GeForce RTX 4070 Ti SUPER","driver":"NVIDIA 616.64","os":"Windows 10.0.26200","cpu":"11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz","cpu_threads":16,"memory_mib":32599,"title_id":"PPSA21567","title":"ASTRO BOT","content_version":"01.019.000","resolution":"3840x2160","window":{"spec":"seconds 150:5","first_present":2694,"ms":5122.836},"presents":30,"frame_ms":{"p50":171.211,"p90":182.441,"p99":185.570,"max":185.570},"gpu_busy_ms_per_present":150.637,"worker_busy_pct":{"queue worker 0x0":98.756,"queue worker 0x40":97.649,"queue worker 0x48":94.176,"queue worker 0x46":9.117},"top_phases_ms_per_frame":{"Driver.Packet":511.344,"Driver.Packet.memory_wait":291.145,"Driver.Packet.draw":88.752,"Driver.Draw":87.947,"Graphics.Draw":85.544,"Graphics.Draw.draw_and_resource_release":68.698,"Driver.Packet.dispatch":56.937,"Driver.Dispatch":53.798},"trace_dropped":false,"trace":"aps5-trace-944677990663-16008.json.gz"}
trace_digest.py, first line of each trace, in run order
aps5-trace-944677990663-23796.json.gz: **seconds 150:5** from present 3198: 29 presents, frame p50 178.8 / p90 187.0 / p99 190.8 / max 190.8 ms, GPU busy 156.6 ms per present
aps5-trace-944677990663-25244.json.gz: **seconds 150:5** from present 2692: 29 presents, frame p50 173.9 / p90 181.8 / p99 183.2 / max 183.2 ms, GPU busy 154.6 ms per present
aps5-trace-8c5ed656dcad-29176.json.gz: **seconds 150:5** from present 2672: 30 presents, frame p50 172.4 / p90 178.3 / p99 183.6 / max 183.6 ms, GPU busy 149.0 ms per present
aps5-trace-8c5ed656dcad-20056.json.gz: **seconds 150:5** from present 2718: 29 presents, frame p50 174.4 / p90 185.2 / p99 199.6 / max 199.6 ms, GPU busy 151.3 ms per present
aps5-trace-944677990663-19412.json.gz: **seconds 150:5** from present 2710: 30 presents, frame p50 171.9 / p90 179.7 / p99 182.3 / max 182.3 ms, GPU busy 160.8 ms per present
aps5-trace-944677990663-24896.json.gz: **seconds 150:5** from present 2704: 30 presents, frame p50 171.9 / p90 177.0 / p99 180.0 / max 180.0 ms, GPU busy 158.4 ms per present
aps5-trace-944677990663-15072.json.gz: **seconds 150:5** from present 3402: 29 presents, frame p50 179.1 / p90 192.0 / p99 193.6 / max 193.6 ms, GPU busy 157.5 ms per present
aps5-trace-944677990663-31540.json.gz: **seconds 150:5** from present 2621: 27 presents, frame p50 190.3 / p90 195.7 / p99 196.9 / max 196.9 ms, GPU busy 172.6 ms per present
aps5-trace-8c5ed656dcad-19088.json.gz: **seconds 150:5** from present 2793: 30 presents, frame p50 170.4 / p90 178.9 / p99 179.1 / max 179.1 ms, GPU busy 151.7 ms per present
aps5-trace-8c5ed656dcad-18140.json.gz: **seconds 150:5** from present 2718: 31 presents, frame p50 162.7 / p90 168.8 / p99 172.7 / max 172.7 ms, GPU busy 153.2 ms per present
aps5-trace-944677990663-28828.json.gz: **seconds 150:5** from present 2729: 31 presents, frame p50 162.6 / p90 168.9 / p99 171.2 / max 171.2 ms, GPU busy 144.9 ms per present
aps5-trace-944677990663-16008.json.gz: **seconds 150:5** from present 2694: 30 presents, frame p50 171.2 / p90 182.4 / p99 185.6 / max 185.6 ms, GPU busy 150.6 ms per present

The traces follow in the next comment, one zip per round with that round's three traces and their summary lines.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 14, 2026
…p rule

addGuestBuffer: main sweeps write-only elements of any record stride on discrete GPUs (the stride test is now Stride() != 0 and the 16-byte constant is gone). This change's in-place argument to AddWritable and its APS5_DRAW_ATOMIC_STAGING switch follow that line unchanged. Sweeping applies to compute dispatches and the in-place flag to draw builds, so the two do not meet.
ShaderDiskCache: 13 BufferResource fields from this change and 51 ImageResource fields from main.
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 15, 2026

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

Reviewed — comments

The changed hazard tracking and in-place atomic binding paths were inspected at head 353c2960b77db373b419f1ddb5989e8477536251; material parts of the change remain unverified because several changed files were too large to include in the review folder.

What I ran

No tests or build commands were run. I read the prepared description, commit list, manifest, diff, and targeted source ranges with repo_read.py.

Results

Check Result Note
Diff and targeted code review not run Review remains incomplete
Tests and build not run Author reports focused tests; not independently verified

Findings

Blocking

None verified in the code inspected.

Non-blocking

None.

Not verified

Full text was available and inspected selectively for GuestBufferMemory.hpp, PassHazards.hpp, ShaderResources.hpp, Draw.cpp, PassHazards.cpp, PassHazards.cpp tests, ShaderDiskCache.cpp tests, the atomic-pass CMake test, and the new AtomicPasses.cpp test. Targeted ranges were read for the excluded full-text files GuestBufferMemory.cpp, ShaderResources.cpp, and Recorder.cpp tests; their complete contents were not read. The remaining changed files listed in the manifest were not read. The reported test runs, performance results, other GPUs, and other titles were not independently verified.

To get this to a good state

Nothing is required. Optional: complete review of the remaining changed files and run the focused tests on this head before treating the review as approval.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 16, 2026
@klosixgaming-arch

Copy link
Copy Markdown
Contributor

I tried to test this on Cyberpunk 2077 on Linux (RTX 2080 Ti, NVIDIA 595.99.02) but it doesn't merge onto current main (e4caa07950). Head 353c2960b7 conflicts in core/shader/recompiler/Recompiler.cpp and core/shader/recompiler/ShaderDiskCache.hpp, so I have no numbers for it. I'll test it once it merges.

Main added imageUintStorage to DescriptorBinding and moved the shader
disk cache format to 88; this branch adds bufferAtomicOnly. Keep both
flags in descriptorBindingBytes, set the DescriptorBinding size check to
976 (both sides had moved it from 864 to 920 for one flag each), and move
the format to 89.
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 18, 2026

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

Reviewed — no blocking findings

The review artifacts and repository files could not be read in this environment, so the change is not verified and a formal decision is not justified.

What I ran

No repository reader command was available to run.

Results

Check Result Note
Review artifact inspection not run Reader unavailable
Code audit not run Changed files not inspected

Findings

Blocking

None verified.

Non-blocking

None.

Not verified

The change description, commits, diff, manifest, changed-file contents, and files reviewed count were not available for inspection.

To get this to a good state

Provide access to repo_read.py and the prepared review artifacts so the change can be reviewed.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 19, 2026
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 19, 2026

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

Reviewed — looks good

Nothing blocks this review; the behavior claims and relevant code paths inspected support merging.

What I ran

Reviewed head 5c77b5d421f36c8b1be491f73af00c96d826a59a through the pinned repo_read.py interface. No build or tests were run in this review; the focused test results in the PR description are author-reported.

Results

Check Result Note
Prepared diff and metadata passed Claims align with the inspected change
Targeted source review passed Pass hazards and in-place binding traced
Build and tests not run Author reports focused tests

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full text of GuestBufferMemory.cpp, ShaderResources.cpp, and Recorder.cpp was not read; only relevant ranges and callers were inspected. The changed test files were not all read, and no tests were run. Performance measurements, other GPU vendors, and other titles were not independently verified. Files excluded by the prepared review manifest were GuestBufferMemory.cpp, ShaderResources.cpp, and Recorder.cpp as full-text artifacts; their relevant changed ranges were read via the pinned reader. All other changed files listed in the manifest were included in the review folder, but not every full file was read.

To get this to a good state

Nothing is required.

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

Reviewed — no blocking findings

The review is incomplete because the prepared review materials could not be read in this environment.

What I ran

No commands run. The required reader and review folder were unavailable through the available tools.

Results

Check Result Note
Review materials not run Not accessible
Tests not run Not run

Findings

Blocking

None verified.

Non-blocking

None.

Not verified

The PR description, commits, diff, manifest, changed files, and repository context were not read. No findings can be substantiated.

To get this to a good state

Nothing is required.

This branch has not been deployed

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

Labels

agc libSceAgc* build docs needs rebase Conflicts with main, rebase needed perf Performance change shader core/shader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants