Skip to content

perf(agc): relocate cached draws across user words that only reach the shader as values - #6539

Closed
TheAggie wants to merge 17 commits into
boykopovar:mainfrom
TheAggie:perf/agc-draw-forwarded-words
Closed

TheAggie wants to merge 17 commits into
boykopovar:mainfrom
TheAggie:perf/agc-draw-forwarded-words

Conversation

@TheAggie

@TheAggie TheAggie commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What

Third step for #4054, stacked on #5609. A user-data word that the resource walk never reads, and that the compiled stage only receives as a pushed value, still took part in the draw key and in the relocation alias. RADV's base-vertex SGPR is one: it changes on every draw, so a title whose draws would otherwise relocate across its moved pointers missed on every draw anyway. On Ratchet & Clank under RetroArch's PCSX2 core, 0.1% of draws hit the cache.

  • A stage's capture now also records which of its pushed user words (shaderDataUserWords) the resource walk did not read at all: DispatchVariant::forwardedWords.
  • When a shader set's relocation is learned and it has at least one read-through pointer word, those forwarded words are learned beside the pointers, marked forwarded. They stay out of the alias key, a relocation accepts any change to them, and the new value is patched into the pushed data the same way a moved pointer's value is.
  • A shader set whose user words are all plain values is left to main's data-only path (perf(agc): cache a draw key the second time it is seen #5216's shape reuse), which already owns that case. A relocation that finds the draw's decode but not every stage also gives way to that path when it applies, instead of claiming the draw with an incomplete entry.
  • The variants and entries a relocation clones come from a small pool that keeps their vectors' capacity (returned when the last reference drops), and the per-stage move and patch lists are thread-local scratch: a draw whose pointers move every draw no longer pays nine heap allocations a stage for its clones.
  • APS5_NO_FORWARDED_RELOCATION=1 turns the forwarded words off; APS5_NO_DRAW_RELOCATION=1 still turns the whole thing off.

Related: #5656 (on #494) lets a data-only hit reuse a stage whose changed user words it never reads; it counts the words a layout forwards into shader data as read, so a changed forwarded word still recompiles the stage there. This PR patches such a word on the relocation path instead. The two touch different paths and no shared code.

Only the commits after #5609's head are this PR.

Tested

Windows 11, NVIDIA GeForce RTX 5070 Ti, MinGW-w64 GCC 15.2.0, on main 940eba9a2 with #4943 and #5609.

  • ctest: 1271 of 1292 pass, 14 skipped. guest_call_trace_abort, windows_backtrace_report and agc_driver_store_over_untracked fail, and fail the same way on plain main here; agc_driver_prepared_graphics_prebuild_0/_1 and undeliverable_host_exception fail under my test runner because it skips their environment changes and pass pattern, and pass run with those; agc_driver_multisample_fill_host_only failed once in the parallel run and passes alone.
  • New case in agc_driver_draw_cache_relocation: a pixel shader reads its red channel through a user-data pointer and its green channel from a user word it gets as a value. Eight draws with the same contents at moving addresses and a changing green value hit the cached draw from the fifth on (0 hits with APS5_NO_FORWARDED_RELOCATION=1), and a hit given green 1.0 writes 255 to the target (64 if the value is not patched: checked by removing the patch).
  • main's agc_driver_draw_cache_reuse cases pass unchanged: their user words are plain values, which still go through the data-only path.
  • RetroArch (PPSA99169) with its PCSX2 core running Ratchet & Clank's intro, pipelined draws, immediate present, audio muted, same build with and without: draw-cache hits from 0.1% to 99.8% of lookups, captures per 10 s from about 460,000 to 950, queue worker from 24.8 to 13.0 µs per draw packet, audio produced in the heavy intro scenes from about 17% of real time to 24-25%. The rest of the gap is the draw pipeline draining on RADV's per-draw cache prefetches, which perf(agc): a DMA_DATA prefetch keeps the draw pipeline #6538 addresses; with both, the same scenes reach 37-43% and the lighter ones real time.
  • The pool, same title, same build with and without it, two alternating runs each: heap allocations per draw (counted with a hook on the driver's operator new imports) 167 to 136, audio produced in the heavy intro scenes 41-43% of real time to 45-47%.
  • Same title with APS5_VERIFY_DRAW_ENTRIES=1, which captures every hit again and compares: 0 stages differed; the last four 10 s windows of the run captured 868,744 hits again.

Checklist

🤖 Generated with Claude Code

TheAggie and others added 17 commits October 15, 2026 09:26
…y reads through

The SRT evaluator records every raw read with the user-data word its address is
based on, and marks a word used as a plain value. The result also names the
user-data word behind each shader-data dword.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A draw whose user-data words differ only in pointers the capture read through
looks up an alias key built from the contents behind them, shifts the cached
variant's runs by the pointer delta, validates them by value and patches the
forwarded shader-data words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d user words

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pixel shader loads its colour through a user-data pointer. Drawn from a third address with the same contents it hits the cached draw; with other contents it does not; the addresses seen before still hit exactly.

AI-assisted (Claude Code).

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

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

With APS5_VERIFY_DRAW_ENTRIES=1 every hit is captured again, so drawHit is false and no relocated hit counted for its shader set's trial, which judged every set unproductive and turned the relocation off under the very mode meant to check it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…; patch relocated push constants without copying the result

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

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

A stage's donor is found by its prepared shader, its own user words and the
contents behind its relocatable words, so a texture learned under one state
serves every state. A draw whose first stages validate reuses them when a later
stage misses, and a known decode is reused on a miss.

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

The recompiler reports the captured words that are a buffer descriptor's base
address and nothing else (never an operand of the walk), and where each lands in
the result. Validation masks them, and a hit that differs only there patches the
new addresses into a copy of the result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…thout a copy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…utside merged programs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pixel shader loads a buffer descriptor through a user-data pointer and reads its colour from that buffer. Drawn again with the descriptor's base address changed, with the same or other contents, it hits the cached draw; with APS5_NO_DRAW_RELOCATION=1 it does not.

AI-assisted (Claude Code).

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e shader as values

A pushed user word the resource walk never reads (RADV's base-vertex SGPR, new on every draw) took part in the draw key and the relocation alias, so a shader set whose pointers moved could never match. Such words are learned beside a set's pointer words as forwarded: left out of the alias, accepted on a relocation and patched into the pushed data like a moved pointer. A set without any pointer word, and a relocation that cannot reuse every stage, leave the draw to main's data-only path.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… draw with the word patched

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Every relocated stage was deep-copied into a fresh variant and a fresh entry built, nine heap allocations a stage, on every draw whose pointers moved. The clones and entries now come from a small pool that keeps their vectors' capacity, returned when the last reference drops, and the per-stage move and patch lists are thread-local scratch. On Ratchet & Clank under RetroArch's PCSX2 core, 31 fewer heap allocations per draw out of 167.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 15, 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/Graphics/src/Texture.cpp
PR 1368 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 1896 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
PR 4448 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 5021 core/shader/recompiler/Recompiler.cpp
PR 5315 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
PR 5371 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 5441 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6108 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6185 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 6186 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/shader/recompiler/Recompiler.hpp
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6235 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.hpp
PR 6249 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6280 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6412 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 6481 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6488 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6501 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
PR 6612 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 6615 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6804 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
PR 6858 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/include/Optimization/ResourceProgram.hpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6924 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6959 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6960 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6970 core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6971 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6973 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6987 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6989 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6995 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7002 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7048 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7085 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7201 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 7223 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7275 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 7310 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7369 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cpp
PR 7395 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7410 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 7446 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
PR 7464 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 7484 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 7508 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp
PR 7514 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7522 core/shader/recompiler/Recompiler.cpp
PR 7604 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7622 core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7642 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.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
core/shader/recompiler/Optimization/include/Optimization/BindingAllocator.hpp
core/shader/recompiler/Optimization/include/Optimization/ResourceProgram.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7668 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 7684 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7689 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7694 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/SrtWalker/SrtDescriptorEvaluation.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7893 core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 7978 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
PR 8004 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 8077 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 8160 core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 8161 core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 8212 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
PR 8223 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 8246 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 8484 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 8707 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 8874 core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 8887 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 8939 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 8963 core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 8998 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9020 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 9050 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9129 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
PR 9176 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 9183 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9193 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 9202 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9243 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
PR 9248 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp
PR 9287 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 9289 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 9335 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 9356 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.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/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9387 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.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/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9431 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9432 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9457 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9489 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 9508 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.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
core/shader/recompiler/Optimization/include/Optimization/BindingAllocator.hpp
core/shader/recompiler/Optimization/include/Optimization/ResourceProgram.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9521 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9533 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9565 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 9633 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9672 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9673 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9674 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9675 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9676 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9712 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 9717 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9742 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9748 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 9749 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9789 core/shader/recompiler/Recompiler.hpp
PR 9790 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9842 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9852 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.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9875 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 9879 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9884 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9889 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9891 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9892 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9893 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9895 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9897 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.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9898 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 9915 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 9969 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9989 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 9999 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10000 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 10026 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10049 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 10064 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10103 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
PR 10159 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10193 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Shaders.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
core/shader/recompiler/Optimization/include/Optimization/BindingAllocator.hpp
core/shader/recompiler/Optimization/include/Optimization/ResourceProgram.hpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 10194 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10249 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10256 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10318 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 10348 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/shader/recompiler/Recompiler.hpp
PR 10351 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 10359 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 10382 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
PR 10435 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10442 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 10472 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10487 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 10489 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 10497 core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 10507 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
PR 10515 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRegisterKey.cpp
core/shader/recompiler/Recompiler.hpp
PR 10547 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 10652 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 10656 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10676 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10678 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 10696 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10720 core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 10743 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10757 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 10773 core/libs/prx/libSceAgcDriver/Graphics/include/Recorder.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Recorder.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10837 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10845 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10846 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 10859 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10886 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10940 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10941 core/shader/recompiler/Recompiler.cpp
PR 10976 core/shader/recompiler/Recompiler.cpp
PR 11065 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 11126 core/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cpp
PR 11163 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cpp
PR 11207 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
PR 11265 core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp
core/shader/recompiler/Recompiler.cpp
PR 11280 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 11297 core/shader/recompiler/Recompiler.cpp
PR 11305 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/shader/recompiler/Recompiler.cpp
PR 11346 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
PR 11351 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp

@nicolasfalesy

Copy link
Copy Markdown
Contributor

Tested on Linux (Arch), c++ (GCC) 16.2.1 20260810, Release, BUILD_TESTING=ON, main at 5d9dcc42d2ec5401aebd089028b8d4d7410a77b4. GPU tests ran on lavapipe (Mesa 26.2.2, llvmpipe with LLVM 22.1.8).

With the dependencies from the description (#4943 and #5609) merged first, agc_driver_draw_cache_relocation aborts (2 of 2):

corrupted double-linked list
agc_driver_draw_cache_relocation ...Subprocess aborted

main plus #4943 plus #5609 without this PR passes the same test (2 of 2). main alone does not have the test. glibc detects a heap corruption, so a write past a buffer or a double free happens somewhere in the code this PR changes or runs. I did not find the exact line.

AI-assisted: yes

@alfalfa-star

Copy link
Copy Markdown
Contributor

Root cause of the corrupted double-linked list abort that @nicolasfalesy reported in agc_driver_draw_cache_relocation.

Reproduced on Linux (Arch), RX 9070 XT (RADV, Mesa 26.2.4), Release, PR head 12a5f02d1: 14 of 15 runs abort. The abort is in static destruction at process exit:

#9  RelocationPool<DrawEntry>::~RelocationPool()
#10 ?? () from libc.so.6
#11 exit ()

entryPool() and variantPool() in DrawRelocate.cpp are function-local statics. relocateDrawEntry calls entryPool().Take() before cloneVariant first calls variantPool(), so the entry pool is constructed first and destroyed last. Its spare DrawEntry objects still hold stages (cleared only when an entry is taken again). Those stages hold shared_ptr<DispatchVariant> objects whose deleter calls Return on variantPool(), which is already destroyed by then. ~RelocationPool<DrawEntry> deletes the spare entries, the variant deleters push into the destroyed pool's vector, and glibc catches the heap corruption.

Fix tested on the same head: make both pools immortal, the same pattern as other process-lifetime singletons in the driver:

RelocationPool<DispatchVariant>& variantPool() {
    static auto* pool = new RelocationPool<DispatchVariant>();
    return *pool;
}

RelocationPool<DrawEntry>& entryPool() {
    static auto* pool = new RelocationPool<DrawEntry>();
    return *pool;
}

With this change agc_driver_draw_cache_relocation passes 10 of 10 runs. Clearing an entry's stages in Return would also work, but the immortal pools also cover any other object that keeps a pooled variant until exit.

AI-assisted: yes (Claude Code)

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 16, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

Thanks for this. Two things before it can be reviewed:

  1. agc_driver_draw_cache_relocation aborts with corrupted double-linked list on this head, the static-destruction order of entryPool/variantPool described in the thread. Could you push that fix?
  2. The branch is far behind main and conflicts in DrawRelocate.cpp, Pipeline.cpp, DrawCacheRelocation.cpp, SrtDescriptorEvaluation.cpp, SrtEvaluator.cpp and ShaderDiskCache.cpp. Relocation has changed on main since your base (stage-data patches for relocated hits, the mesh index descriptor on relocated stages, shared words recorded by run). Please rebase onto current main and say whether the value-only user-word rule still holds on top of those changes.

@JJenkx

JJenkx commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Additional local integration evidence for the pool-lifetime and current SRT metadata concerns above (AI-assisted: yes).

I combined PR head 12a5f02d10fd8bfeedf101df27cb079a3b01f5b1 with main 7526640c3c1c5ea236c33b43b854681e8d169745 and the carried HTILE integration; local integration commit 1a1f519ebfe9dce77b3f3aaf1be96f205d46d162. This is not a current-main-only comparison or a performance result.

  • An alternative to immortal pools is to give RelocationPool<T> shared ownership and capture that owning pointer in each returned object's deleter: [pool = this->shared_from_this()](T* released) { pool->Return(released); }, with each pool accessor holding a static std::shared_ptr<RelocationPool<T>>. This keeps a pool alive until its outstanding objects are returned during shutdown.
  • Address-relocated variants need their copied shared validation metadata cleared before rebuilding address-bound runs in this integration.
  • The SRT tape needs the same provenance accounting as the basic evaluator: preserve forwarded/nested operand reads, record readInstructions and descriptor sourceLeads, and roll back those additions when a tape walk refuses. Before that adaptation, agc_driver_draw_cache_moved_buffer failed on the tape path while the APS5_NO_SRT_TAPE control passed.

After these adaptations, seven focused tests passed five repetitions each (35 executions): shader disk cache, moved buffer, relocation, and draw-cache reuse/default-off/verify/inline. Linux/RADV, MALLOC_PERTURB_=165, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation; no VUID errors, skips, or missing-layer warnings in that log.

Hades II native controls also completed, but do not establish a forwarding performance benefit or regression. An initial cold-cache run had black timed captures during a long frame stall; a later ordinary-settings repeat rendered the hub. The cache conditions differed, so the initial black captures should not be attributed to forwarding from these runs. This does not settle the general value-only rule or replace the requested current-main rebase/review.

@JJenkx

JJenkx commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

The repair source is now available on JJenkx/AnyPS5, fix/descriptor-relocation-integration, rebased onto main 2185dbf92e8d9013a1620d2dfc95de50494e19f8. Prerequisite commits from #5609 and #6539 retain their original authorship. This is a tested integration branch for review/cherry-picking, not a replacement PR or a performance claim.

The relevant repairs are:

  • 586c05cf71: retain the relocation pools in outstanding objects' deleters so cached-object cleanup cannot return an object to an already destroyed pool. Before the repair, the relocation test aborted during shutdown; after it, the test exits normally.
  • 572fe318ce: record tape readInstructions, operandReads and descriptor sourceLeads, preserve operand nesting, and roll the metadata back on tape refusal. The differential tape/interpreter regression fails without this repair (read provenance has a different size from the reads) and passes with it.
  • 4184001cff: patch moved descriptor bases when a data-only hit validates as EqualData, with moved-buffer and changed-length regression coverage. This builds on the preceding data-only integration commits in the branch; it is not a standalone patch against main.

Matched focused validation on Arch Linux / AMD Radeon RX 6650 XT / RADV 26.2.4:

  • Main 2185dbf92e: 5/5 matching tests pass.
  • Integration 572fe318ce: those five plus the dependency's new moved-buffer test pass (6/6).
  • Both logs have zero VUID- messages, missing validation-layer warnings, or skipped tests.

Both runs used:

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 \
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
ctest --test-dir build-full -R '^(agc_shader_memory|agc_driver_draw_(data_hit_user_words(_verify)?|cache_relocation|cache_moved_buffer)|agc_shader_disk_cache)$' -V

The moved-buffer test is absent on main; the other five test names match. Conventions checks pass. These results establish focused correctness coverage, not a title FPS improvement. AI-assisted: yes.

@JJenkx

JJenkx commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

A matched Hades II measurement is now available for the integration branch above (AI-assisted: yes). This pair does not show a speedup.

Baseline 17558c1cd1bb8b8cb6c0e44c4a7ea7af774016f5 is main 9a97ac784da5d40cc7b7d968898ffbf5b8b5377a plus the refreshed #6300 depth dependency. Candidate 64ba4ebacf38fead38f699555b2418e1c24463a6 adds the combined descriptor relocation stack and its integration repairs. This is a dependency-baseline comparison, not a main-only result or an isolated measurement of #6539.

Both legs used identical starting save hashes, the same inputs and rendered Underworld room, separate initially empty shader/Mesa caches, the same hardware and trace settings (APS5_TRACE_SECONDS=160:15, APS5_TRACE_EVENTS=1048576). Both compiled 199 shaders from cold caches, exited normally, restored the kernel setting, and produced complete traces (trace_dropped=false). Both traces were processed with tools/trace_digest.py.

Metric Baseline Combined candidate
Frame p50 (ms) 21.811 23.136
Frame p90 (ms) 27.745 28.453
Frame p99 (ms) 34.273 34.594
Presents / trace duration 656 / 15.023s 632 / 15.010s
GPU busy ms/present 10.892 10.254

The official summary reports Driver.Draw.shader_compile_and_link at 9.366 versus 10.717 ms/frame and Shader.DrawStage at 6.105 versus 6.835 ms/frame. These are inclusive scopes; they do not mean actual shader compilation continued during the window. The candidate p50 was 6.1% higher in this single pair; that is insufficient to establish regression significance, but does not support a performance claim for this scene.

The complete official summary lines, full source pins and comparison conditions are in comparison.json. Full traces are retained locally. Next I will investigate preparation/lookup costs before proposing any speed claim.

@JJenkx

JJenkx commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

A bounded-cache correctness follow-up is available in 198bca0fd0 on the existing integration branch. AI-assisted: yes. This depends on the relocation stack; it is not an isolated patch against main or a performance claim.

learnPendingRelocation() previously pruned both alias maps whenever their size reached 16,384, including when learning only refreshed an existing key. Stage donors were also checked once before inserting multiple stages, allowing the map to exceed its bound within that loop. The helper now checks each insertion and prunes only for a new key at capacity; existing donors still receive refreshed payloads.

The regression exercises both stage and decode donor maps: updates at capacity preserve every other key and replace payloads; repeated new insertions retain the newest entry, stay within the bound, and account for evictions. The unconditional-pruning negative control fails with updating an existing alias evicted unrelated donors at capacity; the fixed implementation passes.

Full Linux libs build and five focused checks pass on AMD Radeon RX 6650 XT / RADV: shader memory, moved buffer, relocation, data-hit user words and its verification variant. Vulkan required, shader caches disabled, Khronos validation enabled; zero VUIDs, skips or missing-layer warnings. Conventions pass with the existing debt-length warning. These checks validate this integration, not a fresh main-versus-candidate comparison.

Hades II PPSA36082 also reached the expected Underworld room, then closed normally after 188 seconds; PID gone and kernel setting restored. Warm shader cache: 199 hits, zero misses. The sparse screenshot shows no obvious new corruption. Instrumented timings vary, so no title speedup is claimed. Native core validation was not requested; the validation result above applies to the focused tests.

Logs, source patch and compact validation evidence.

@JJenkx

JJenkx commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Matched measurement of the integration branch on another title and platform, where the miss pattern is exactly what this stack targets. It shows no gain; the candidate is slower here. AI-assisted: yes.

Setup

  • Machine: Windows 11 22621, RX 6700 XT, AMD driver 26.10.1, Ryzen 9 5950X.
  • Scene: Spirit of the Island (PPSA13934) title screen, no input, 150 s runs, APS5_TRACE_SUMMARY_EVERY=10, steady-state intervals from 60 s on.
  • Baseline: main 71401e331, plus the test-only test(agc): align the array window test's texels at run time #8310 so the tree builds on Windows.
  • Candidate: the same main merged with fix/descriptor-relocation-integration at 572fe318c. A local, unpublished merge: the only conflict was ShaderDiskCache::FormatVersion (43 vs 42), set to 44.

This scene issues ~1,650 draws per frame. With APS5_TRACE_DRAW_CACHE, main hits only 0.5–0.8 % of ~410k lookups per 10 s; almost every miss is user words/pointers only and becomes a data-only hit that still compiles ~1.5 stages per draw.

p50 frame (median of intervals) presents / 10 s GPU busy / present Driver.Packet / frame draw-cache hits
main 71401e3 104.8 ms 96 54.6 ms 96.9 ms 0.5–0.8 %
candidate 114.0 ms 88 51.1 ms 102.2 ms 1.4–1.5 %

Candidate data-only hits per 10 s: 219k stages reused, 530k compiled, against 208k/611k on main.

So the relocation path converts a few more lookups, but on this title the per-draw cost it adds outweighs that. That matches the earlier per-draw content hashing concern. The queue worker stays ~90 % busy in both builds, and the frame is worker-bound.

Summaries are in my local evidence; I can share the aps5-summary.jsonl pair if useful.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@TheAggie This PR now conflicts with main in core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp, core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp, core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp, core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp, core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp, core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp, core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp, core/libs/prx/libSceAgcDriver/Graphics/src/Draw.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp, core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp, core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cpp, core/shader/recompiler/Optimization/src/SrtWalker/SrtDescriptorEvaluation.cpp, core/shader/recompiler/Optimization/src/SrtWalker/SrtEvaluator.cpp, core/shader/recompiler/ShaderDiskCache.cpp. Main’s draw aliases, user-data masks, tracing and shader-cache layout overlap this PR’s cached-draw relocation interfaces. Could you reconcile which user words may be forwarded or relocated while retaining the current alias and cache-layout rules?

@JJenkx

JJenkx commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Linux port/qualification for the #5609 + this PR chain at public head 12a5f02d10fd8bfeedf101df27cb079a3b01f5b1: reviewable integration bba0a6e71749113c810d38da514798584e450279. This preserves your feature/provenance and supplies port/fix followups, rather than opening a duplicate PR.

The full feature patch applies cleanly to literal main 7e4f6e0440b3b39206f0a6e21b1d177f6975d930. The actual test baseline is c67e51fe8a2, which also contains #4449 and descriptor-ownership/fixture-cast followups needed by the title; no #8091. The archive includes both the full checked patch and six linear followup commits.

Port details:

  • Retained main's shared captured words, user-word masks, mesh descriptor state, deferred draw/trace handling and cache layout. Relocation donors use weak references tied to live draw-cache entries; existing eviction and kept-donor tests still pass.
  • The pool's raw-this deleter can outlive the pool. An exact-template CPU ASAN control holding1026 objects past pool destruction reports stack-use-after-scope; a shared pool-state repair passes and releases all objects.
  • The moved-buffer case initially failed on main's SRT tape because it did not record the new read origins/source leads. Turning the tape off isolated it. The port records those fields on the fast path, restores them on refusal, and verifies them against the evaluator. Default and tape-verified moved-buffer/relocation cases pass; disabling forwarded relocation fails its intended case.
  • Updated the data-hit fixture's now-obsolete recompilation expectation, with actual triangle rendering and1.0/0.5 payload readbacks. The exact updated fixture compiled against baseline headers/libraries rejects the old recompilation path; its relocation-off and verification controls pass. Existing direct-buffer/read-user-word cases are retained.

RX6650XT / RADV Mesa26.2.4 / Linux7.2.9 / GCC16.2.1 Release: baseline22groups×3=66 and final change23×3=69 pass; actual Khronos insertion, required Vulkan and disabled application shader caches, zero skips/VUIDs. Both full SDK/relinker builds pass. Conventions0errors, one inherited long-debt warning. Rejected compile-time-stub and intermediate failures were not counted as qualification.

A bounded PPSA31544 Battlefield run with both APS5_VERIFY_DRAW_ENTRIES=1 and APS5_VERIFY_SRT_TAPE=1 (verified in the live process) reaches gameplay, exits0 and restores configuration; no cache-entry/tape mismatch messages. Black effects remain. Full hits stay around0.2–0.3%; no FPS gain is established for this scene. This is correctness/port evidence, not an official timing comparison, and does not change the original PR's measured claims.

Source patches, tests/controls, ASAN proof, GPU logs, counters and final screenshot — SHA-256 178836cc5d89e74fa1ab3440721ea244ceacd0f096997e9199f9414a27c27d54, downloaded/hash-verified. No supplied game binaries/assets are included. AI-assisted: yes.

@JJenkx

JJenkx commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to the modern-main port above: I added counter-only instrumentation on top of qualified bba0a6e7, as b0e1ce71ac53, and completed a bounded PPSA31544 Battlefield run to locate the missing reuse. This is still the disclosed main 7e4f6e04 + #4449/ownership/fixture-cast + #5609/#6539 composition, not literal latest main.

Across 19 reported ten-second intervals covering startup and stationary gameplay (final partial interval excluded):

  • 59,363 alias lookups: 58,970 unknown structure keys (99.34%), 393 expired/evicted decode owners, zero relocated-entry hits. No lookup reached a stage-donor or user-word refusal.
  • 106,246 stages with buffer bases: zero skipped for existing flat-data positions; 461,975 bases examined, 461,968 tagged and 7 rejected for aliased values.

So the mixed-flat-data early return is not the blocker observed here. The next investigation is why drawRegisterKey's structure keys do not match live learned decodes, including which changing inputs remain in the key and whether admission/retention matters. These counters do not establish that omitting any particular input is safe.

Fresh same-host RX6650XT/RADV focused hardware controls: baseline c67e51fe 3 groups × 3 = 9 passes; instrumented candidate 4 × 3 = 12 passes (same three plus moved-buffer). Actual Khronos layer, no skips, zero VUID errors. Native run: verified menu Continue, 9 HUD observations, ordinary close/exit0, configuration and kernel limit restored. Black effects persist in the directly viewed final screenshot; no FPS improvement claim.

Diagnostic patch, extracted counters, terminal result and GPU logs — SHA256 3a181e64043903e6bd63b4b9ad6f4b02c871d10472d6b9e8c18dc83b4c3c8fd2; downloaded and verified. Original game assets and raw game logs are excluded.

Follow-up key provenance diagnostic (342a883e1dee): within groups having the same stable state, shader set and device, 58,135 of 58,236 sampled keys had changed fixed user words, with 2 classification-layout changes recorded separately. The largest change counts were registers 0xa6 (45,184) and 0xa4 (39,535). Counts cover the reported startup/gameplay intervals and consecutive observations within each group; they do not prove that omitting these inputs is safe. The next step is to inspect their use/provenance, not relax the key speculatively.

The same focused GPU controls passed again (baseline9, candidate12; actual Khronos layer, zero VUIDs/skips). The bounded native run exited0/restored and reached the verified Battlefield HUD; black effects persist, with no FPS claim. Additional patch, extracted counters and terminal/GPU evidence — SHA256 4e45714e7f1e45cc4ac20ec6736a1e550ee5b32cf7286d25458207e2bf2d7bb7; downloaded and verified.

@JJenkx

JJenkx commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

The fixed-register trace led to a vertex-table relocation prototype: c04c70781736. Read-only cache inspection found vertex buffer-table user register 26 and attribute-table register 28 in 25 cached vertex variants. These table reads were not represented in relocation provenance; the hot hardware register 0xa6 therefore remained in the fixed key.

The decoder now records each table read's originating user word. The relocation code accepts only complete, aligned, nonconflicting origins, retains strict table-content hashing, and excludes both pointer words from shader-only forwarding. Tests cover plain/merged origins, missing/oversized/hidden origins, conflicting reads, pointers also used as values, and changed descriptor record counts.

On the disclosed main 7e4f + #4449/ownership/fixture-cast + modern #5609/#6539 composition, final candidate and feature-disabled controls each pass five focused groups three times (30 passes total), with actual Khronos validation, zero VUID errors/skips/verifier messages. The final bounded PPSA31544 run reaches the Battlefield HUD, exits 0/restores configuration, and records 12,049 relocated-entry hits across 19 reported startup/gameplay intervals. Entry, SRT-tape and recipe verification flags were read back from the actual process; no final verifier mismatch messages were logged.

This also exposed an existing recipe-verifier ordering bug: it compares donor user words before their execution patches. That fix and a falsifiable regression are independently submitted on latest main in #11163; the earlier prototype's capped mismatch messages are not being treated as a clean result.

Complete-draw gameplay hit reports remain around 0.4–0.5%, black effects persist, and no FPS improvement is established. This is a shared prototype; an isolated performance qualification is still needed before a standalone performance PR.

Delta/full integration patches, offline metadata inspection, counters and focused/native evidence — SHA256 cf84aafd5fc3487e92c885772348997f339df99718a318eb44a9870d9352628c; manifest and downloaded archive verified. Original game/cache binaries, shader bytecode, saves and raw game logs are excluded. Only this qualified archive is linked; it supersedes the earlier upload that captured an unfinished conventions log.

@JJenkx

JJenkx commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Follow-up to the vertex-table pointer prototype: I implemented an opt-in vertex-resource refresh path, so decoder-only buffer base/count changes can reuse a compiled vertex stage and rebuild its binding recipe.

Source branch at 45a431a6a88 (incremental diff). Tested build head f6c3db94cf87f72ea37499c26fd4a034b1f927d5 has the identical source tree. This retains the prior integration composition; it is not a latest-main qualification or an FPS claim.

APS5_VERTEX_RESOURCE_REFRESH=1 permits only decoder-proven V# low-address and record-count words. Compiler-captured/overlapping attribute words remain strict. Fresh ordered table decode, complete remaining metadata comparison and captured-word consistency are required before copying the result and refreshing vertex resources. Stride/format changes retain normal compilation. Existing rejection of undersized nonzero-stride descriptors is unchanged.

Evidence on RX 6650 XT/RADV:

  • 15 uncached compiler-result comparisons across strides 0/16/32: resource-only replacement exactly matches fresh serialized results and SPIR-V.
  • Actual GPU readback/cache-reuse regressions cover moved buffers, record-count changes, zero-stride empty reads, and ordinary/pipelined draws. Candidate 21 passes; exact-parent production common controls 15 passes; both new regressions fail specifically for absent cache reuse; restored candidate 21 passes with byte-identical driver. Actual Khronos validation present; no VUIDs, skips or decode-verifier messages.
  • PPSA31544 checkpoint run closed normally after 201 seconds, native/harness exit 0, configuration restored, seven HUD confirmations. All three verifier flags and the opt-in flag were verified from /proc. Across 19 reported startup/gameplay intervals: 160,069 resource refreshes, zero refused refreshes, zero draw-verifier/SRT mismatch messages. Recent complete-draw hit reports were about 23%; that is diagnostic, not a matched performance comparison. Existing opaque black effects remain.

Patch, source hashes, compiler probe, focused logs and native counters, SHA-256 ae4eb023100f4d15701be6b662fb55b64da2a6ad94ade857ded7a075b39f170a. Game assets, private saves/caches and raw game logs are excluded. Current-main cceb6c3c41e merge-tree is clean; a current-main build and matched performance pair remain to be done.

@JJenkx

JJenkx commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Current-main build/measurement follow-up: both test integrations now include main cceb6c3c41e. Parent 740c8c37c180 and candidate 422b8867883e retain the disclosed #4449/#5609/#6539/ownership/verifier composition. They are private test integrations with merge commits, not standalone main or a proposed PR branch.

Both full library builds passed. On the same RX 6650 XT/RADV machine, common focused tests pass 12/12 on the parent; candidate common plus new ordinary/pipelined vertex-readback regressions pass 18/18. Actual Khronos validation is present, with no VUIDs, skips, missing layer or decode-verifier messages.

The first matched FPS pair is inconclusive for speed impact. Both arms used identical starting save/shader/Mesa cache copies, the same stationary Battlefield scene and the official 125:30 trace window. /proc confirmed verifiers off in both and the opt-in flag present only in the candidate. Both runs closed normally with exit 0 and restored configuration; gameplay HUD confirmed 9/7 times. Matching 135-second images were inspected; existing opaque black effects persist.

Integration Presents / seconds Observed FPS Frame p50 / p99 Mean unrelated host CPU load
Parent 740c8c37c180 387 / 30.009 12.90 75.6 / 102.9 ms 4.35%
Candidate 422b8867883e 307 / 30.070 10.21 93.9 / 151.1 ms 17.93%

Background playback was active, and CPU accounting shows substantially different unrelated load between the arms. Both 262,144-event buffers also filled after about six seconds; aggregate totals did not fill, but detailed event attribution is incomplete. This pair establishes no causal speed improvement or regression. The higher cache-hit count is insufficient to promote the opt-in prototype.

Raw traces, official digests/summary lines, cache/control proofs and GPU qualification logs; SHA-256 73707739ab159d0d3234adc0cd7d5e95fb1f5bab108ad34205d40b7125eccc9f. A quiet-host comparison with larger event buffers remains necessary before any speed claim.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@TheAggie Thanks for this, and for the work that went into it. I'm going to close it, because it can't land in its current form:

  • The exit-time crash in agc_driver_draw_cache_relocation (corrupted double-linked list) is still on this head. RelocationPool is a function-local static, and each pooled object's deleter points back at its pool, so at shutdown the pool is destroyed before the draw caches that still hold its objects, and their releases then touch the destroyed pool.
  • The branch is about 9,000 commits behind main and conflicts in more than ten files. DispatchVariant and the relocation code have changed a lot since, so the pooled clone and the forwarded-word rule would need to be redone against the current structs.
  • The matched runs of the relocation stack posted here on 20 and 21 Oct came out slower than main, despite the higher hit rate.
  • Our 20 Oct questions (fix the abort, rebase, and whether the value-only rule still holds on current main) haven't been answered.

If you'd like to pick the idea up again, a fresh PR on current main is very welcome: with the pool lifetime fixed (pooled objects keeping their pool alive), a shutdown regression test, and a matched before/after measurement. Thanks also to @JJenkx for the integration and measurement work in this thread.

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

Labels

agc libSceAgc* build needs rebase Conflicts with main, rebase needed perf numbers missing perf pull request without a before and after summary line perf Performance change shader core/shader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants