perf(agc): data-only draw hits compare only the user words a stage reads #5656

Merged
Raghav314 merged 4 commits from upstream-pr/5656 into main 2026-10-20 19:32:28 +00:00
Raghav314 commented 2026-10-14 04:28:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Raghav314 on 2026-10-14T04:28:43Z.


What

A data-only draw hit (#494) reuses a cached stage only when every user data word of the stage is unchanged. A title that changes a user word per draw that a stage never reads (a per-draw counter, a pointer only another stage follows) gets no reuse for that stage, though its compiled result and captured memory would be the same.

  • When a stage is captured, it records the user words it depends on, as a 64-bit mask over its user data:
    • the words its SRT walk reads, as values or as bases (SrtUserDataUse::asValue | asBase);
    • the words its binding layout forwards into shader data (userDataRegisterReads), which covers words a stage reads straight from its SGPRs;
    • the two words of each vertex fetch table register in its vertex stage info.
  • A capture whose walk reads no user word gets the full mask, and a word at index 64 or above always counts as read.
  • On a data-only hit, a cached stage is a candidate when the words that changed are all outside its mask. Its captured memory is then validated as before; every other check is unchanged.
  • The mask is stored with the stage's result in the pipeline journal, so the journal file format goes from 4 to 5. Disk cache entries recompute it from the variant when they are loaded, so the disk cache format is unchanged.

PPSA36082

In Hades II most draws change user words between draws (a per-draw counter and ring pointers). In the level UI/menu, the stage preparation in the draw path (Shader.DrawStage) goes from 6.5 to 5.1 ms per frame and the frame time p50 from 18.5 to 17.6 ms (530 to 560 presents in 10 s). The picture is unchanged.

Level UI/menu standing still, APS5_HOST_IMPORT_MIB=6784, no APS5_PROFILE_* switch, APS5_TRACE_EVENTS=1048576 so the traces are whole, shader cache warmed for each build, one run each (measured on main 93e54cedd):

  • main:
    {"commit":"93e54cedd3dd","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"6784","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"70:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","resolution":"1920x1080","window":{"spec":"seconds 70:10","first_present":4314,"ms":10016.434},"presents":530,"frame_ms":{"p50":18.546,"p90":21.041,"p99":23.527,"max":42.509},"gpu_busy_ms_per_present":2.046,"worker_busy_pct":{"queue worker 0x0":94.100},"top_phases_ms_per_frame":{"Driver.Packet":17.778,"Driver.Packet.draw":15.493,"Driver.Draw":15.323,"Driver.Draw.shader_compile_and_link":10.913,"Shader.DrawStage":6.526,"Shader.DrawStage.capture_resources":4.228,"Driver.Draw.draw_enqueued":2.180,"Shader.DrawStage.materialize":1.505},"trace_dropped":false,"trace":"aps5-trace-93e54cedd3dd-723638.json.gz"}
    
  • this PR:
    {"commit":"bd7a16e291bc","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"6784","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"70:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","resolution":"1920x1080","window":{"spec":"seconds 70:10","first_present":4301,"ms":10010.943},"presents":560,"frame_ms":{"p50":17.623,"p90":19.970,"p99":24.124,"max":29.993},"gpu_busy_ms_per_present":2.047,"worker_busy_pct":{"queue worker 0x0":93.836},"top_phases_ms_per_frame":{"Driver.Packet":16.769,"Driver.Packet.draw":14.312,"Driver.Draw":14.152,"Driver.Draw.shader_compile_and_link":9.588,"Shader.DrawStage":5.116,"Shader.DrawStage.capture_resources":3.273,"Driver.Draw.draw_enqueued":2.273,"Shader.DrawStage.materialize":1.212},"trace_dropped":false,"trace":"aps5-trace-bd7a16e291bc-723937.json.gz"}
    

The frame time moves with the window position (an earlier pair at 150:10 gave 466 to 574 presents), so the stage time is the steadier number.

Tested

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

  • agc_driver_draw_data_hit_user_words: the pixel stage loads a buffer descriptor through user words 0 and 1 and never reads word 2. A draw that changes only word 2 is a data-only hit that reuses both stages; a draw that points words 0 and 1 at another descriptor compiles the pixel stage again and reuses the vertex stage. _verify runs the same draws with APS5_VERIFY_DRAW_DATA_HITS=1.
  • A pixel stage that adds user word 2, read straight from its SGPR, to its output: a draw that changes only word 2 writes 191 instead of 128. With userDataRegisterReads left out of the mask the draw reuses the old stage, writes 127, and verify mode aborts.
  • JJenkx's round trip of a full 64-bit mask through the disk cache, and his commit that admits the serial key twice first, as main's second-sight admission needs.
  • The linux job of current build.yml run locally on #6946's branch, which is this PR with #6946 on top: configure with SPIRV tools on, test registration check, build, libs, the whole ctest and conventions. 1693/1693 pass, 16 expected skips, conventions OK.
  • Hades II with APS5_VERIFY_DRAW_DATA_HITS=1 APS5_VERIFY_DRAW_ENTRIES=1 APS5_VERIFY_REGISTER_KEYS=1 on the earlier #494-based version of this change: 0 stages differed, picture fine.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: #6946
  • GPUs tested: NVIDIA GeForce RTX 4090, 615.78.08, Linux 7.2.10 (CachyOS)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4852959342 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656). Originally posted by [Raghav314](https://github.com/Raghav314) on 2026-10-14T04:28:43Z. --- ### What A data-only draw hit (#494) reuses a cached stage only when every user data word of the stage is unchanged. A title that changes a user word per draw that a stage never reads (a per-draw counter, a pointer only another stage follows) gets no reuse for that stage, though its compiled result and captured memory would be the same. - When a stage is captured, it records the user words it depends on, as a 64-bit mask over its user data: - the words its SRT walk reads, as values or as bases (`SrtUserDataUse::asValue | asBase`); - the words its binding layout forwards into shader data (`userDataRegisterReads`), which covers words a stage reads straight from its SGPRs; - the two words of each vertex fetch table register in its vertex stage info. - A capture whose walk reads no user word gets the full mask, and a word at index 64 or above always counts as read. - On a data-only hit, a cached stage is a candidate when the words that changed are all outside its mask. Its captured memory is then validated as before; every other check is unchanged. - The mask is stored with the stage's result in the pipeline journal, so the journal file format goes from 4 to 5. Disk cache entries recompute it from the variant when they are loaded, so the disk cache format is unchanged. ### PPSA36082 In Hades II most draws change user words between draws (a per-draw counter and ring pointers). In the level UI/menu, the stage preparation in the draw path (`Shader.DrawStage`) goes from 6.5 to 5.1 ms per frame and the frame time p50 from 18.5 to 17.6 ms (530 to 560 presents in 10 s). The picture is unchanged. Level UI/menu standing still, `APS5_HOST_IMPORT_MIB=6784`, no `APS5_PROFILE_*` switch, `APS5_TRACE_EVENTS=1048576` so the traces are whole, shader cache warmed for each build, one run each (measured on `main` 93e54cedd): - `main`: ``` {"commit":"93e54cedd3dd","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"6784","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"70:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","resolution":"1920x1080","window":{"spec":"seconds 70:10","first_present":4314,"ms":10016.434},"presents":530,"frame_ms":{"p50":18.546,"p90":21.041,"p99":23.527,"max":42.509},"gpu_busy_ms_per_present":2.046,"worker_busy_pct":{"queue worker 0x0":94.100},"top_phases_ms_per_frame":{"Driver.Packet":17.778,"Driver.Packet.draw":15.493,"Driver.Draw":15.323,"Driver.Draw.shader_compile_and_link":10.913,"Shader.DrawStage":6.526,"Shader.DrawStage.capture_resources":4.228,"Driver.Draw.draw_enqueued":2.180,"Shader.DrawStage.materialize":1.505},"trace_dropped":false,"trace":"aps5-trace-93e54cedd3dd-723638.json.gz"} ``` - this PR: ``` {"commit":"bd7a16e291bc","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"6784","APS5_TRACE_DIR":"<path>","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"70:10"},"gpu":"NVIDIA GeForce RTX 4090","driver":"NVIDIA 615.78.08","os":"Linux 7.2.10-1-cachyos","resolution":"1920x1080","window":{"spec":"seconds 70:10","first_present":4301,"ms":10010.943},"presents":560,"frame_ms":{"p50":17.623,"p90":19.970,"p99":24.124,"max":29.993},"gpu_busy_ms_per_present":2.047,"worker_busy_pct":{"queue worker 0x0":93.836},"top_phases_ms_per_frame":{"Driver.Packet":16.769,"Driver.Packet.draw":14.312,"Driver.Draw":14.152,"Driver.Draw.shader_compile_and_link":9.588,"Shader.DrawStage":5.116,"Shader.DrawStage.capture_resources":3.273,"Driver.Draw.draw_enqueued":2.273,"Shader.DrawStage.materialize":1.212},"trace_dropped":false,"trace":"aps5-trace-bd7a16e291bc-723937.json.gz"} ``` The frame time moves with the window position (an earlier pair at `150:10` gave 466 to 574 presents), so the stage time is the steadier number. ### Tested Linux (CachyOS), x86-64, GCC, 7800X3D / RTX 4090, NVIDIA 615.78.08, on `main` 0d8c51a54. - `agc_driver_draw_data_hit_user_words`: the pixel stage loads a buffer descriptor through user words 0 and 1 and never reads word 2. A draw that changes only word 2 is a data-only hit that reuses both stages; a draw that points words 0 and 1 at another descriptor compiles the pixel stage again and reuses the vertex stage. `_verify` runs the same draws with `APS5_VERIFY_DRAW_DATA_HITS=1`. - A pixel stage that adds user word 2, read straight from its SGPR, to its output: a draw that changes only word 2 writes 191 instead of 128. With `userDataRegisterReads` left out of the mask the draw reuses the old stage, writes 127, and verify mode aborts. - JJenkx's round trip of a full 64-bit mask through the disk cache, and his commit that admits the serial key twice first, as `main`'s second-sight admission needs. - The linux job of current `build.yml` run locally on #6946's branch, which is this PR with #6946 on top: configure with SPIRV tools on, test registration check, build, libs, the whole ctest and conventions. 1693/1693 pass, 16 expected skips, conventions OK. - Hades II with `APS5_VERIFY_DRAW_DATA_HITS=1 APS5_VERIFY_DRAW_ENTRIES=1 APS5_VERIFY_REGISTER_KEYS=1` on the earlier #494-based version of this change: 0 stages differed, picture fine. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: #6946 - [x] GPUs tested: NVIDIA GeForce RTX 4090, 615.78.08, Linux 7.2.10 (CachyOS) - [x] AI-assisted: yes
CnRJay commented 2026-10-14 16:56:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CnRJay on 2026-10-14T16:56:10Z.

Review: COMMENTED


Comparing only the user words a stage depends on is a natural refinement of #494. Running Hades II with APS5_VERIFY_DRAW_DATA_HITS=1 and 0 differing stages is the right correctness check.

On the evidence: both summary lines were captured with APS5_PROFILE_DRAW=1 set (it is in their env). The Performance report form asks for runs with no APS5_PROFILE_* switch, because the draw profiler times every draw and changes the cost being measured, here on the draw path itself. Please capture the two lines again with only APS5_HOST_IMPORT_MIB and APS5_TRACE_SECONDS. If the p50 gain (34.0 → 26.9 ms) holds without the profiler, that settles it. Both lines also show trace_dropped: true, so the attached traces are incomplete; a shorter window keeps them whole.

One question on the mask: are user words a stage uses as plain values, read straight from user SGPRs into ALU work rather than through the SRT walk or forwarded shader data, always covered by userDataRegisterReads? If a stage can consume a user word that neither source records, a change to that word would leave it outside the mask and reuse a stage compiled for the old value. Either a sentence saying which path covers it, or a test with a pixel stage that does arithmetic on a user word (and nothing else), would close that.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5521554223 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656#pullrequestreview-5521554223). Originally posted by [CnRJay](https://github.com/CnRJay) on 2026-10-14T16:56:10Z. **Review:** COMMENTED --- Comparing only the user words a stage depends on is a natural refinement of #494. Running Hades II with `APS5_VERIFY_DRAW_DATA_HITS=1` and 0 differing stages is the right correctness check. On the evidence: both summary lines were captured with `APS5_PROFILE_DRAW=1` set (it is in their `env`). The Performance report form asks for runs with no `APS5_PROFILE_*` switch, because the draw profiler times every draw and changes the cost being measured, here on the draw path itself. Please capture the two lines again with only `APS5_HOST_IMPORT_MIB` and `APS5_TRACE_SECONDS`. If the p50 gain (34.0 → 26.9 ms) holds without the profiler, that settles it. Both lines also show `trace_dropped: true`, so the attached traces are incomplete; a shorter window keeps them whole. One question on the mask: are user words a stage uses as plain values, read straight from user SGPRs into ALU work rather than through the SRT walk or forwarded shader data, always covered by `userDataRegisterReads`? If a stage can consume a user word that neither source records, a change to that word would leave it outside the mask and reuse a stage compiled for the old value. Either a sentence saying which path covers it, or a test with a pixel stage that does arithmetic on a user word (and nothing else), would close that.
Gashrod1 commented 2026-10-14 20:42:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Gashrod1 on 2026-10-14T20:42:53Z.


Measured on DAVE THE DIVER (PPSA19115), as announced in #5436. Short version: data-only hits trigger on almost every keyless draw, but the frame time barely moves, because the user words that change in this title are pointers the stages read.

Setup. Windows 11, RTX 5060 (596.36), Ryzen 7 5800X; build with -fno-omit-frame-pointer -g1, Release otherwise. Same underwater scene each time, APS5_PROFILE_DRAW=1 APS5_TRACE_SUMMARY_EVERY=10. Base: main 956269ad1 plus the MSAA stack this title needs (#4820, #5496, #5445, #5892, #5558, local changes listed in #5963). The test build merges 8267abd21 (this PR with #494) into that base.

Median over the 10 s intervals after the first 50 s:

Build frame p50 Driver.Draw Graphics.Draw
base 43.6 ms 39.2 ms 27.6 ms
base, APS5_DRAW_CACHE_ENTRIES=65536 41.8 ms 37.1 ms 27.0 ms
base + #494 + #5656 42.1 ms 37.3 ms 26.8 ms

The gain is within run-to-run noise (the #5656 run had 9 intervals in the scene, the base 28). From the [draw-cache] register key lines (10 s windows):

  • base: 90-97k lookups, 62-70k hits, decode skipped on 69-77k
  • #5656: 82-94k lookups, 26-60k hits, decode skipped on 81-94k (all but a few dozen)

So the shape lookup works and the decode is skipped nearly everywhere, but the stages are still captured and compiled. A churn trace on the base (exact key vs shape, logged per user word) showed 288 shapes against ~456k exact keys in a few minutes, every new key differing only in user words, about 95% of the changed words increasing: ring-buffer pointers that the SRT walk reads, so userDataMask rightly keeps them. A stage that could be reused here would need its captured addresses relocated rather than compared as-is.

Port notes, in case they are useful for a rebase:

  • main now reads the vertex user-data tail continuation from the user words (DrawProgram::tailContinuation). I moved that read into ReadUserWords so a data-only refresh recomputes it, and skip the candidates of a stage whose continuation changed.
  • main's 0adbdcf45 caches a draw key only at its second sight, so the first draw of a shape never gets an entry and agc_driver_draw_data_hit_user_words fails. I admitted the first key of a shape that has no entry yet (at most one key per shape skips the second sight), and ran agc_driver_draw_cache_reuse with APS5_NO_DRAW_DATA_HITS=1, since it checks the second-sight rule. With that, the five agc_driver_draw* tests pass on Linux. The lower full-hit rate above may come from this admission rule or from the scene; I have not separated the two.
  • ShaderDiskCache sizes on current main: ShaderInvocation 120, RecompileResult 360, format version bumped past 32.

Most of the frame in this title is on the resource side (Graphics.Draw, ~27 ms), which neither variant touches; I will look there next.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6178015007 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656#issuecomment-6178015007). Originally posted by [Gashrod1](https://github.com/Gashrod1) on 2026-10-14T20:42:53Z. --- Measured on DAVE THE DIVER (PPSA19115), as announced in #5436. Short version: data-only hits trigger on almost every keyless draw, but the frame time barely moves, because the user words that change in this title are pointers the stages read. **Setup.** Windows 11, RTX 5060 (596.36), Ryzen 7 5800X; build with `-fno-omit-frame-pointer -g1`, Release otherwise. Same underwater scene each time, `APS5_PROFILE_DRAW=1 APS5_TRACE_SUMMARY_EVERY=10`. Base: `main` 956269ad1 plus the MSAA stack this title needs (#4820, #5496, #5445, #5892, #5558, local changes listed in #5963). The test build merges 8267abd21 (this PR with #494) into that base. Median over the 10 s intervals after the first 50 s: | Build | frame p50 | Driver.Draw | Graphics.Draw | |---|---|---|---| | base | 43.6 ms | 39.2 ms | 27.6 ms | | base, `APS5_DRAW_CACHE_ENTRIES=65536` | 41.8 ms | 37.1 ms | 27.0 ms | | base + #494 + #5656 | 42.1 ms | 37.3 ms | 26.8 ms | The gain is within run-to-run noise (the #5656 run had 9 intervals in the scene, the base 28). From the `[draw-cache] register key` lines (10 s windows): - base: 90-97k lookups, 62-70k hits, decode skipped on 69-77k - #5656: 82-94k lookups, 26-60k hits, decode skipped on 81-94k (all but a few dozen) So the shape lookup works and the decode is skipped nearly everywhere, but the stages are still captured and compiled. A churn trace on the base (exact key vs shape, logged per user word) showed 288 shapes against ~456k exact keys in a few minutes, every new key differing only in user words, about 95% of the changed words increasing: ring-buffer pointers that the SRT walk reads, so `userDataMask` rightly keeps them. A stage that could be reused here would need its captured addresses relocated rather than compared as-is. Port notes, in case they are useful for a rebase: - `main` now reads the vertex user-data tail continuation from the user words (`DrawProgram::tailContinuation`). I moved that read into `ReadUserWords` so a data-only refresh recomputes it, and skip the candidates of a stage whose continuation changed. - `main`'s 0adbdcf45 caches a draw key only at its second sight, so the first draw of a shape never gets an entry and `agc_driver_draw_data_hit_user_words` fails. I admitted the first key of a shape that has no entry yet (at most one key per shape skips the second sight), and ran `agc_driver_draw_cache_reuse` with `APS5_NO_DRAW_DATA_HITS=1`, since it checks the second-sight rule. With that, the five `agc_driver_draw*` tests pass on Linux. The lower full-hit rate above may come from this admission rule or from the scene; I have not separated the two. - `ShaderDiskCache` sizes on current `main`: `ShaderInvocation` 120, `RecompileResult` 360, format version bumped past 32. Most of the frame in this title is on the resource side (`Graphics.Draw`, ~27 ms), which neither variant touches; I will look there next. AI-assisted: yes
fma-rc commented 2026-10-15 06:00:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-15T06:00:58Z.


Stacked this on #6188 (0eb0d8903) over d92a8dad3 in Astro's Playroom on Linux (RTX 5080, heavy in-game scene, one 20 s run each, APS5_PROFILE_DRAW=1). The frames match.

FPS register-key hits per 10 s capture / recompile / decode, us per draw
d92a8dad3 7.57 9k of 227k 7.8 / 4.3 / 1.4
6188 8.37 83k of 242k 5.4 / 1.3 / 3.0
6188 + 5656 12.77 372k of 373k 0.1 / 0.0 / 0.4

So with 6188 compiling ahead, 5656's data-only hits cover almost every draw in this scene. In the merge I applied the user-word mask in 6188's compileDrawAhead too.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6185597755 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656#issuecomment-6185597755). Originally posted by [fma-rc](https://github.com/fma-rc) on 2026-10-15T06:00:58Z. --- Stacked this on #6188 (0eb0d8903) over d92a8dad3 in Astro's Playroom on Linux (RTX 5080, heavy in-game scene, one 20 s run each, `APS5_PROFILE_DRAW=1`). The frames match. | | FPS | register-key hits per 10 s | capture / recompile / decode, us per draw | |---|---|---|---| | d92a8dad3 | 7.57 | 9k of 227k | 7.8 / 4.3 / 1.4 | | 6188 | 8.37 | 83k of 242k | 5.4 / 1.3 / 3.0 | | 6188 + 5656 | 12.77 | 372k of 373k | 0.1 / 0.0 / 0.4 | So with 6188 compiling ahead, 5656's data-only hits cover almost every draw in this scene. In the merge I applied the user-word mask in 6188's `compileDrawAhead` too.
github-actions[bot] commented 2026-10-15 12:08:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:08:22Z.


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

Pull request Conflicting files (lines on main) Same exports Same new files
PR 6879 core/shader/recompiler/ShaderDiskCache.cpp L87-89
PR 6924 core/shader/recompiler/Recompiler.cpp L991-992
PR 6970 core/shader/recompiler/ShaderDiskCache.cpp L88-90
PR 7689 core/shader/recompiler/ShaderDiskCache.cpp L88-90
PR 8365 core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp L45-47
PR 8542 core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp L45-47

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 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 4072 core/shader/recompiler/Recompiler.cpp
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5431 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
PR 5499 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5609 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/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6146 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6185 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6187 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/shader/recompiler/Recompiler.hpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6209 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6235 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.hpp
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
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/CMakeLists.txt
PR 6539 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/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6682 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6683 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp
core/shader/recompiler/Recompiler.hpp
PR 6747 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6788 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6868 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6905 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6977 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7002 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7048 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7085 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7201 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 7395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7446 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7464 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7484 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 7505 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7514 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7550 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7604 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7644 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7684 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7691 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
PR 7800 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7816 core/shader/recompiler/Recompiler.cpp
PR 7888 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 8004 core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/Recompiler.hpp
PR 8014 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 8077 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 8206 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191681840 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656#issuecomment-6191681840). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:08:22Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `core/shader/recompiler/ShaderDiskCache.cpp` [L87-89](https://github.com/boykopovar/AnyPS5/blob/b85d972f4208d4821a994c8d94eb3d7b78561ecd/core/shader/recompiler/ShaderDiskCache.cpp#L87-L89) | | | | [PR 6924](https://www.github.com/boykopovar/AnyPS5/pull/6924) | `core/shader/recompiler/Recompiler.cpp` [L991-992](https://github.com/boykopovar/AnyPS5/blob/b85d972f4208d4821a994c8d94eb3d7b78561ecd/core/shader/recompiler/Recompiler.cpp#L991-L992) | | | | [PR 6970](https://www.github.com/boykopovar/AnyPS5/pull/6970) | `core/shader/recompiler/ShaderDiskCache.cpp` [L88-90](https://github.com/boykopovar/AnyPS5/blob/b85d972f4208d4821a994c8d94eb3d7b78561ecd/core/shader/recompiler/ShaderDiskCache.cpp#L88-L90) | | | | [PR 7689](https://www.github.com/boykopovar/AnyPS5/pull/7689) | `core/shader/recompiler/ShaderDiskCache.cpp` [L88-90](https://github.com/boykopovar/AnyPS5/blob/b85d972f4208d4821a994c8d94eb3d7b78561ecd/core/shader/recompiler/ShaderDiskCache.cpp#L88-L90) | | | | [PR 8365](https://www.github.com/boykopovar/AnyPS5/pull/8365) | `core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp` [L45-47](https://github.com/boykopovar/AnyPS5/blob/b85d972f4208d4821a994c8d94eb3d7b78561ecd/core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp#L45-L47) | | | | [PR 8542](https://www.github.com/boykopovar/AnyPS5/pull/8542) | `core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp` [L45-47](https://github.com/boykopovar/AnyPS5/blob/b85d972f4208d4821a994c8d94eb3d7b78561ecd/core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp#L45-L47) | | | 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 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/shader/recompiler/Recompiler.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6146](https://www.github.com/boykopovar/AnyPS5/pull/6146) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6187](https://www.github.com/boykopovar/AnyPS5/pull/6187) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6209](https://www.github.com/boykopovar/AnyPS5/pull/6209) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6488](https://www.github.com/boykopovar/AnyPS5/pull/6488) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 6501](https://www.github.com/boykopovar/AnyPS5/pull/6501) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 6682](https://www.github.com/boykopovar/AnyPS5/pull/6682) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawLookup.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6747](https://www.github.com/boykopovar/AnyPS5/pull/6747) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6905](https://www.github.com/boykopovar/AnyPS5/pull/6905) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 7002](https://www.github.com/boykopovar/AnyPS5/pull/7002) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7048](https://www.github.com/boykopovar/AnyPS5/pull/7048) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7085](https://www.github.com/boykopovar/AnyPS5/pull/7085) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 7395](https://www.github.com/boykopovar/AnyPS5/pull/7395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 7446](https://www.github.com/boykopovar/AnyPS5/pull/7446) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7464](https://www.github.com/boykopovar/AnyPS5/pull/7464) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7484](https://www.github.com/boykopovar/AnyPS5/pull/7484) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7550](https://www.github.com/boykopovar/AnyPS5/pull/7550) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7644](https://www.github.com/boykopovar/AnyPS5/pull/7644) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7684](https://www.github.com/boykopovar/AnyPS5/pull/7684) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 7691](https://www.github.com/boykopovar/AnyPS5/pull/7691) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7816](https://www.github.com/boykopovar/AnyPS5/pull/7816) | `core/shader/recompiler/Recompiler.cpp` | | [PR 7888](https://www.github.com/boykopovar/AnyPS5/pull/7888) | `core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 8004](https://www.github.com/boykopovar/AnyPS5/pull/8004) | `core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 8077](https://www.github.com/boykopovar/AnyPS5/pull/8077) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 8206](https://www.github.com/boykopovar/AnyPS5/pull/8206) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp` |
JJenkx commented 2026-10-15 19:11:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-15T19:11:33Z.


Refreshed the serial user-word mask change onto main 44df21632125dbe3113a19173e7ebb879da53003, retaining your authorship: source comparison. This preserves main's pending-write/bulk-read hooks and newer image-table serialization, uses cache format 37 and the current layout sizes, and admits the repeated register key before the data-only-hit test.

Added a full-width mask serialization regression: the synthetic result includes bits 63 and 32 plus low bits. A negative control truncating the decoded mask to 32 bits fails with result round trip: user data register read mask differs; restoring the decoder passes. That negative control was run before the final rebase, on the same serialization implementation.

Full libs build and eight selected checks pass with zero skips on both AMD Radeon RX 6650 XT / RADV Mesa 26.2.4-arch1.1 and lavapipe Mesa 26.2.4-arch1.1 (LLVM 23.1.1), Arch Linux: both user-word tests, four draw-cache reuse variants, shader-disk-cache and validator-exit. Conventions, registration and whitespace pass. Exact validation source adds only #6476's bundled-validator build repair to the source comparison, with official dependency pins.

No standalone Astro Bot speedup claim from this pass. I excluded a b7cedd900-based timing pair after finding stale XComposite captures: in a separate same-source run the 270/365-second window images remained byte-identical while the last four direct GPU readbacks all changed. The candidate cache also originated in the earlier draw-ahead integration, rather than an independent cold run of this source. The previously reported draw-ahead-plus-masks result remains a separate conditional experiment; it is not a main-versus-this-change baseline. No screenshots, game binaries, assets, caches or raw game logs are attached.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6200209842 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656#issuecomment-6200209842). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-15T19:11:33Z. --- Refreshed the serial user-word mask change onto main `44df21632125dbe3113a19173e7ebb879da53003`, retaining your authorship: [source comparison](https://github.com/JJenkx/AnyPS5/compare/main...integration/main-user-word-masks-44d). This preserves main's pending-write/bulk-read hooks and newer image-table serialization, uses cache format 37 and the current layout sizes, and admits the repeated register key before the data-only-hit test. Added [a full-width mask serialization regression](https://github.com/JJenkx/AnyPS5/commit/40e79b809): the synthetic result includes bits 63 and 32 plus low bits. A negative control truncating the decoded mask to 32 bits fails with `result round trip: user data register read mask differs`; restoring the decoder passes. That negative control was run before the final rebase, on the same serialization implementation. Full `libs` build and eight selected checks pass with zero skips on both AMD Radeon RX 6650 XT / RADV Mesa 26.2.4-arch1.1 and lavapipe Mesa 26.2.4-arch1.1 (LLVM 23.1.1), Arch Linux: both user-word tests, four draw-cache reuse variants, shader-disk-cache and validator-exit. Conventions, registration and whitespace pass. [Exact validation source](https://github.com/JJenkx/AnyPS5/tree/validation/main-user-word-masks-44d) adds only #6476's bundled-validator build repair to the source comparison, with official dependency pins. No standalone Astro Bot speedup claim from this pass. I excluded a b7cedd900-based timing pair after finding stale XComposite captures: in a separate same-source run the 270/365-second window images remained byte-identical while the last four direct GPU readbacks all changed. The candidate cache also originated in the earlier draw-ahead integration, rather than an independent cold run of this source. The previously reported draw-ahead-plus-masks result remains a separate conditional experiment; it is not a main-versus-this-change baseline. No screenshots, game binaries, assets, caches or raw game logs are attached.
EdouardSence commented 2026-10-16 13:14:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-16T13:14:58Z.


Measured JJenkx's refresh (integration/main-user-word-masks-44d, 40e79b809) on Astro Bot (PPSA21567 v01.019.000), since that comparison noted no standalone Astro Bot number. Short version: in this scene the mask does not change reuse, because the user words that change between draws are words the stages do read.

Setup. Linux (CachyOS 7.2.10), RX 9070 XT, RADV Mesa 26.2.4, GCC Release. app.elf -lvl hub_crashsite (Crash Site, no input), headless gamescope 1920x1080, warm shader cache, one 200 s warm-up run, then APS5_TRACE_SECONDS=60:60. Build = main eb901bcf4 merged with 40e79b809. That merge had four conflicts against main's #4943 relocation fields (DispatchVariant, StageCapture, SrtRuntime, disk-cache size asserts). I kept both sides and set the asserts to the new sizes (ShaderInvocation 208, RecompileResult 472). The baseline is main eb901bcf4 + #6341 (#6341 only adds tracing).

presents / 60 s frame p50 / p90 ms shader_compile_and_link ms/frame data-only hits / 10 s stages reused / compiled on those hits
main 482 124.4 / 128.9 43.8 166k 90k / 242k
main + masks 463 129.5 / 134.4 43.9 168k 91k / 246k

One run each, so I am not claiming the 4% difference; there is no gain.

Why. APS5_TRACE_DRAW_CACHE=1 on main: of ~170k lookups per 10 s, ~169k are "user words/pointers only" misses; registers and shaders almost never differ. With the masks I added a local counter (not pushed) in the data-only candidate loop of DrawLookup.cpp. It counts how often a cached variant is skipped, and which changed words fall inside its userDataMask:

  • 2.80M variants checked, 2.05M skipped (73%), on average 5.4 changed words inside the mask per skip; no word at index 64 or above.
  • Only 4% of those changed words are set in the variant's relocatableWords (449k of 11.05M), so #4943's relocation does not cover them either.
  • The most frequent positions are even words (w8 1.49M, w4 1.04M, w16/w12/w10/w0 ~0.9M each, w6 0.61M, w28 0.56M), with their odd neighbours changing about 6x less often. This looks like per-object 64-bit pointers whose low word moves on every draw.

So on this title the per-draw cost (~5,600 draws per frame, capture plus recompile on ~73% of stages) comes from pointers the shaders follow, not from unread words. The mask stays correct and cheap here; it just has nothing to skip. Happy to rerun with a different counter if that helps.

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

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6216305474 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656#issuecomment-6216305474). Originally posted by [EdouardSence](https://github.com/EdouardSence) on 2026-10-16T13:14:58Z. --- Measured JJenkx's refresh (`integration/main-user-word-masks-44d`, 40e79b809) on Astro Bot (PPSA21567 v01.019.000), since that comparison noted no standalone Astro Bot number. Short version: in this scene the mask does not change reuse, because the user words that change between draws are words the stages do read. **Setup.** Linux (CachyOS 7.2.10), RX 9070 XT, RADV Mesa 26.2.4, GCC Release. `app.elf -lvl hub_crashsite` (Crash Site, no input), headless gamescope 1920x1080, warm shader cache, one 200 s warm-up run, then `APS5_TRACE_SECONDS=60:60`. Build = main eb901bcf4 merged with 40e79b809. That merge had four conflicts against main's #4943 relocation fields (`DispatchVariant`, `StageCapture`, `SrtRuntime`, disk-cache size asserts). I kept both sides and set the asserts to the new sizes (`ShaderInvocation` 208, `RecompileResult` 472). The baseline is main eb901bcf4 + #6341 (#6341 only adds tracing). | | presents / 60 s | frame p50 / p90 ms | `shader_compile_and_link` ms/frame | data-only hits / 10 s | stages reused / compiled on those hits | |---|---|---|---|---|---| | main | 482 | 124.4 / 128.9 | 43.8 | 166k | 90k / 242k | | main + masks | 463 | 129.5 / 134.4 | 43.9 | 168k | 91k / 246k | One run each, so I am not claiming the 4% difference; there is no gain. **Why.** `APS5_TRACE_DRAW_CACHE=1` on main: of ~170k lookups per 10 s, ~169k are "user words/pointers only" misses; registers and shaders almost never differ. With the masks I added a local counter (not pushed) in the data-only candidate loop of `DrawLookup.cpp`. It counts how often a cached variant is skipped, and which changed words fall inside its `userDataMask`: - 2.80M variants checked, 2.05M skipped (73%), on average 5.4 changed words inside the mask per skip; no word at index 64 or above. - Only 4% of those changed words are set in the variant's `relocatableWords` (449k of 11.05M), so #4943's relocation does not cover them either. - The most frequent positions are even words (w8 1.49M, w4 1.04M, w16/w12/w10/w0 ~0.9M each, w6 0.61M, w28 0.56M), with their odd neighbours changing about 6x less often. This looks like per-object 64-bit pointers whose low word moves on every draw. So on this title the per-draw cost (~5,600 draws per frame, capture plus recompile on ~73% of stages) comes from pointers the shaders follow, not from unread words. The mask stays correct and cheap here; it just has nothing to skip. Happy to rerun with a different counter if that helps. *Tested and written by Claude (AI assistant) on a contributor's machine.* AI-assisted: yes.
Raghav314 commented 2026-10-16 19:19:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Raghav314 on 2026-10-16T19:19:57Z.


Rebased onto main f474fb776 (the mask now comes from main's SrtUserDataUse, disk cache format 37) with JJenkx's two test commits, and the description is updated.

  • Summary lines again without any APS5_PROFILE_* switch, level UI/menu, with APS5_TRACE_EVENTS=1048576 so both traces are whole: 530 to 560 presents in 10 s, p50 18.5 to 17.6 ms, Shader.DrawStage 6.5 to 5.1 ms per frame. An earlier pair without the profiler but with the default buffer gave 466 to 574 and 21.1 to 17.1 ms. So the gain holds without the profiler, smaller in this pair; the stage time drops in both.
  • User words read straight from SGPRs: those are the stage layout's user-data registers, recorded in userDataRegisterReads, which is part of the mask. The new test does what you described: a pixel stage that only adds user word 2, read from its SGPR, to its output. A draw that changes only word 2 writes 191 instead of 128. With userDataRegisterReads left out of the mask, the draw reuses the old stage, writes 127, and APS5_VERIFY_DRAW_DATA_HITS=1 aborts.

LLM assistance used.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6222966769 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656#issuecomment-6222966769). Originally posted by [Raghav314](https://github.com/Raghav314) on 2026-10-16T19:19:57Z. --- Rebased onto `main` f474fb776 (the mask now comes from main's `SrtUserDataUse`, disk cache format 37) with JJenkx's two test commits, and the description is updated. - Summary lines again without any `APS5_PROFILE_*` switch, level UI/menu, with `APS5_TRACE_EVENTS=1048576` so both traces are whole: 530 to 560 presents in 10 s, p50 18.5 to 17.6 ms, `Shader.DrawStage` 6.5 to 5.1 ms per frame. An earlier pair without the profiler but with the default buffer gave 466 to 574 and 21.1 to 17.1 ms. So the gain holds without the profiler, smaller in this pair; the stage time drops in both. - User words read straight from SGPRs: those are the stage layout's user-data registers, recorded in `userDataRegisterReads`, which is part of the mask. The new test does what you described: a pixel stage that only adds user word 2, read from its SGPR, to its output. A draw that changes only word 2 writes 191 instead of 128. With `userDataRegisterReads` left out of the mask, the draw reuses the old stage, writes 127, and `APS5_VERIFY_DRAW_DATA_HITS=1` aborts. LLM assistance used.
EdouardSence commented 2026-10-16 20:49:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-16T20:49:07Z.


Follow-up on the rebased head (1b62f5927, on main f474fb776), same Astro Bot scene as above (-lvl hub_crashsite, Linux, RX 9070 XT, RADV Mesa 26.2.4), one 240 s run with APS5_TRACE_DRAW_CACHE=1:

data-only hits / 10 s stages reused / compiled on those hits
main eb901bcf4 (earlier run) 166k 90k / 242k (27% reused)
this PR, rebased 155k 85k / 225k (27% reused)

Same result as with JJenkx's refresh: in this scene the user words that change are read by the stages, so the mask does not add reuse. This run had the draw-cache trace enabled and is on a newer main, so I am not comparing frame rates (439 presents in the 120:60 window). Nothing new in the kernel log. This is not a regression report; I am only noting that the gain does not reach this title's in-game scene.

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

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6224421393 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656#issuecomment-6224421393). Originally posted by [EdouardSence](https://github.com/EdouardSence) on 2026-10-16T20:49:07Z. --- Follow-up on the rebased head (1b62f5927, on main f474fb776), same Astro Bot scene as above (`-lvl hub_crashsite`, Linux, RX 9070 XT, RADV Mesa 26.2.4), one 240 s run with `APS5_TRACE_DRAW_CACHE=1`: | | data-only hits / 10 s | stages reused / compiled on those hits | |---|---|---| | main eb901bcf4 (earlier run) | 166k | 90k / 242k (27% reused) | | this PR, rebased | 155k | 85k / 225k (27% reused) | Same result as with JJenkx's refresh: in this scene the user words that change are read by the stages, so the mask does not add reuse. This run had the draw-cache trace enabled and is on a newer main, so I am not comparing frame rates (439 presents in the 120:60 window). Nothing new in the kernel log. This is not a regression report; I am only noting that the gain does not reach this title's in-game scene. *Tested and written by Claude (AI assistant) on a contributor's machine.* AI-assisted: yes.
oneandonlydean commented 2026-10-18 17:52:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T17:52:24Z.


  1. The wrong format is bumped for current main. The PR bumps the disk-cache FormatVersion 36 → 37 because "the mask is stored with the stage". But on current main encodeInvocation is reached only through EncodeResult, whose only user is the pipeline journal (PipelineJournal.cpp:746 in the merged tree). Disk-cache entries go through EncodeEntry, and materializeResult recomputes userDataRegisterReads from the variant. Main is already at FormatVersion 37 (from #6243), so the PR's bump is a silent no-op after the merge, while the journal FileFormat stays 3 although its record layout grew by 8 bytes. Old journals would mis-decode and, I'd expect, be dropped by the reader/identity checks. That fails safe, but it isn't the intended hygiene. Fix: revert the FormatVersion hunk and bump the journal FileFormat instead. Note that number 4 is contested by #4650, #6959, #6801, #6639, #6612 and #6530.
  2. Dead field: DispatchVariant::userDataMask (DispatchCache.hpp) is declared but never set or read. Drop it, or wire dispatch lookups to it.
  3. sizeof asserts: ShaderInvocation 200 → 208 and RecompileResult 472 → 480 are the same numbers #4650 uses (for its readsDepthRemapPush). Whichever lands second must move them again (216/488) and encode both fields.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6253163056 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656#issuecomment-6253163056). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-18T17:52:24Z. --- 1. **The wrong format is bumped for current main.** The PR bumps the **disk-cache** `FormatVersion` 36 → 37 because "the mask is stored with the stage". But on current main `encodeInvocation` is reached only through `EncodeResult`, whose only user is the **pipeline journal** (PipelineJournal.cpp:746 in the merged tree). Disk-cache entries go through `EncodeEntry`, and `materializeResult` recomputes `userDataRegisterReads` from the variant. Main is already at `FormatVersion` 37 (from #6243), so the PR's bump is a silent no-op after the merge, while the **journal `FileFormat` stays 3** although its record layout grew by 8 bytes. Old journals would mis-decode and, I'd expect, be dropped by the reader/identity checks. That fails safe, but it isn't the intended hygiene. **Fix:** revert the `FormatVersion` hunk and bump the journal `FileFormat` instead. Note that number 4 is contested by #4650, #6959, #6801, #6639, #6612 and #6530. 2. **Dead field:** `DispatchVariant::userDataMask` (DispatchCache.hpp) is declared but never set or read. Drop it, or wire dispatch lookups to it. 3. **`sizeof` asserts:** ShaderInvocation 200 → 208 and RecompileResult 472 → 480 are the **same numbers #4650 uses** (for its `readsDepthRemapPush`). Whichever lands second must move them again (216/488) **and** encode both fields.
Raghav314 commented 2026-10-18 19:34:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Raghav314 on 2026-10-18T19:34:43Z.


Thanks. Rebased on c4c2b3a, and the format and size points are fixed:

  • The FormatVersion hunk is reverted (main is at 38). Disk cache entries go through EncodeEntry, and materializeResult rebuilds userDataRegisterReads from the variant's userDataRegisters, so only the journal stores the mask. The journal FileFormat goes 3 → 4. If one of #4650, #6959, #6801, #6639, #6612 or #6530 lands first, I'll move this to the next free number.
  • ShaderInvocation is 208 and RecompileResult 480. Whichever of this and #4650 lands second moves them to 216/488 and encodes both fields.

DispatchVariant::userDataMask isn't dead: a draw keeps its stages as DispatchVariants (DrawCache.hpp), and the mask is set when a stage is captured (DrawCapture.cpp) and read on a data-only hit (DrawLookup.cpp). Dispatches themselves don't use it in this PR.

LLM assistance used.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254224286 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656#issuecomment-6254224286). Originally posted by [Raghav314](https://github.com/Raghav314) on 2026-10-18T19:34:43Z. --- Thanks. Rebased on c4c2b3a, and the format and size points are fixed: - The `FormatVersion` hunk is reverted (main is at 38). Disk cache entries go through `EncodeEntry`, and `materializeResult` rebuilds `userDataRegisterReads` from the variant's `userDataRegisters`, so only the journal stores the mask. The journal `FileFormat` goes 3 → 4. If one of #4650, #6959, #6801, #6639, #6612 or #6530 lands first, I'll move this to the next free number. - `ShaderInvocation` is 208 and `RecompileResult` 480. Whichever of this and #4650 lands second moves them to 216/488 and encodes both fields. `DispatchVariant::userDataMask` isn't dead: a draw keeps its stages as `DispatchVariant`s (`DrawCache.hpp`), and the mask is set when a stage is captured (`DrawCapture.cpp`) and read on a data-only hit (`DrawLookup.cpp`). Dispatches themselves don't use it in this PR. LLM assistance used.
oneandonlydean commented 2026-10-19 09:22:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-19T09:22:48Z.


@Raghav314 This one is reviewed and CI was green on fe87a2cea0, but it conflicts with current main again, and part of the conflict is one git won't show you.

#4650 has merged (b876d43fb1). It moved ShaderInvocation / RecompileResult to 208 / 480 with its own new field, the same sizes this PR asserts. So git auto-merges those static_asserts without complaint, but the combined structs now carry both fields. When you merge or rebase onto main, please:

  • recompute the ShaderInvocation and RecompileResult size asserts for the combined layout, and keep both encoder lines in ShaderDiskCache.cpp (main's and yours), in the journal's field order;
  • resolve the visible conflict on the DescriptorBinding size assert (main 656, PR 632) the same way, from the real combined struct;
  • bump the disk-cache format version if adding both fields changes the on-disk layout compared with what main writes now.

Once it's pushed we'll check the resolution, run full CI again (agc_driver_draw_data_hit_user_words, _verify and agc_shader_disk_cache) and then the draw-cache gate. Thanks!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6263947681 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656#issuecomment-6263947681). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-19T09:22:48Z. --- @Raghav314 This one is reviewed and CI was green on fe87a2cea0, but it conflicts with current `main` again, and part of the conflict is one git won't show you. #4650 has merged (b876d43fb1). It moved `ShaderInvocation` / `RecompileResult` to 208 / 480 with its own new field, the same sizes this PR asserts. So git auto-merges those `static_assert`s without complaint, but the combined structs now carry both fields. When you merge or rebase onto `main`, please: - recompute the `ShaderInvocation` and `RecompileResult` size asserts for the combined layout, and keep both encoder lines in `ShaderDiskCache.cpp` (main's and yours), in the journal's field order; - resolve the visible conflict on the `DescriptorBinding` size assert (main 656, PR 632) the same way, from the real combined struct; - bump the disk-cache format version if adding both fields changes the on-disk layout compared with what `main` writes now. Once it's pushed we'll check the resolution, run full CI again (`agc_driver_draw_data_hit_user_words`, `_verify` and `agc_shader_disk_cache`) and then the draw-cache gate. Thanks!
JJenkx commented 2026-10-20 16:58:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-20T16:58:23Z.


Retested your current head 5892c846c75bb17c10e1c5ebe96bea0d2db30c5a in the Hades II (PPSA36082) integration refreshed to main d0852defa2a5fbc7f64ab20abddb7e1c24733345. The candidate reaches the hub with the character visible in the 170-second capture and closes normally. The baseline also reaches the hub; both restore runtime configuration and leave no game process.

This is integration evidence, not an isolated main-versus-PR acceptance test: the preserved baseline 50d7ce6043ef3ae9d409e07e3589bdad207d2c53 includes the existing #6300 HTILE and #6539 SRT work plus local correctness fixes. Candidate 00e19490602563f74c50b6e189e8b1de4039ac1c adds your four PR commits. Resolving the overlap preserves both sets of stage/variant metadata and adjusts the combined RecompileResult size assertion to 552.

On AMD Radeon RX 6650 XT / RADV Mesa 26.2.4-1, Arch Linux:

  • The four agc_driver_draw_cache_reuse variants pass on both baseline and candidate.
  • Both agc_driver_draw_data_hit_user_words variants additionally pass on the candidate.
  • Focused runs use ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, with zero skips, missing-layer messages or VUID- errors. The new tests were explicitly enabled in the selective execution-test build before the final run.

Evidence archive includes the complete focused logs, source delta/history, native reports/logs and reviewed hub captures. Native runs themselves did not enable core validation. No FPS claim: these runs differ in capture timing/duration and do not contain matched official performance traces.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6296405522 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656#issuecomment-6296405522). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-20T16:58:23Z. --- Retested your current head `5892c846c75bb17c10e1c5ebe96bea0d2db30c5a` in the Hades II (PPSA36082) integration refreshed to main `d0852defa2a5fbc7f64ab20abddb7e1c24733345`. The candidate reaches the hub with the character visible in the 170-second capture and closes normally. The baseline also reaches the hub; both restore runtime configuration and leave no game process. This is **integration evidence**, not an isolated main-versus-PR acceptance test: the preserved baseline `50d7ce6043ef3ae9d409e07e3589bdad207d2c53` includes the existing #6300 HTILE and #6539 SRT work plus local correctness fixes. Candidate `00e19490602563f74c50b6e189e8b1de4039ac1c` adds your four PR commits. Resolving the overlap preserves both sets of stage/variant metadata and adjusts the combined `RecompileResult` size assertion to 552. On AMD Radeon RX 6650 XT / RADV Mesa 26.2.4-1, Arch Linux: - The four `agc_driver_draw_cache_reuse` variants pass on both baseline and candidate. - Both `agc_driver_draw_data_hit_user_words` variants additionally pass on the candidate. - Focused runs use `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, with zero skips, missing-layer messages or `VUID-` errors. The new tests were explicitly enabled in the selective execution-test build before the final run. [Evidence archive](https://github.com/JJenkx/AnyPS5/releases/download/game-library-checks-20261016/20261020-pr5656-d085-integration-validation.tar.gz) includes the complete focused logs, source delta/history, native reports/logs and reviewed hub captures. Native runs themselves did not enable core validation. No FPS claim: these runs differ in capture timing/duration and do not contain matched official performance traces.
JJenkx commented 2026-10-20 17:21:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-20T17:21:26Z.


Follow-up with matched Hades II (PPSA36082, 01.006.000) hub traces on the same RX 6650 XT/RADV machine. The four runs use baseline → candidate → candidate → baseline order, warm caches with title restart, the exact same eight-file save manifest, identical scheduled inputs, window and settings. Reviewed 155/175-second captures show the same character/camera position in the idle hub; animation phases differ.

Build/run Frame p50 ms Frame p99 ms Shader compile/link ms per present
baseline 1 24.104 35.452 13.106
candidate 1 21.286 29.974 9.830
candidate 2 21.771 30.162 10.011
baseline 2 23.322 38.693 12.618

Both candidate medians are lower than both baseline medians. The average of the two run medians is about 9% lower, and shader compile/link time per present about 23% lower. This is limited evidence from two five-second idle-hub captures per build, not a gameplay-wide speed claim.

As in the earlier comment, baseline 50d7ce6043ef3ae9d409e07e3589bdad207d2c53 is the Hades integration on main d0852defa2a5fbc7f64ab20abddb7e1c24733345 with #6300/#6539 and local correctness fixes. Candidate 00e19490602563f74c50b6e189e8b1de4039ac1c adds this PR's four commits through head 5892c846c75bb17c10e1c5ebe96bea0d2db30c5a. This is not stock-main versus the standalone PR and does not replace that acceptance comparison.

Capture: APS5_TRACE_SECONDS=160:5, identical APS5_TRACE_EVENTS=1048576 capacity override to avoid truncated traces; no draw profiling or other diagnostic trace modes. Native stdout remained attached to a PTY recorded with util-linux script, rather than redirected to a game log file. Thus the event-capacity override is explicit rather than claiming literally only one APS5_TRACE_* variable. All four traces report no dropped events, and all four runs close normally and restore the kernel setting. Native core validation was disabled; the previously attached matched focused GPU validation results still apply to these unchanged source pins.

Trace/evidence archive contains all four traces and trace_digest.py outputs, summary lines, native reports, terminal recordings, reviewed hub captures, exact candidate delta and reproduction harness. No save files or game assets are included.

Official summary lines, in run order:

{"commit":"50d7ce6043ef","dirty":false,"env":{"APS5_DRAW_CACHE_ENTRIES":"4096","APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"1","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"160:5"},"gpu":"AMD Radeon RX 6650 XT (RADV NAVI23)","driver":"radv Mesa 26.2.4-arch1.1","os":"Linux 7.2.9-arch1-1","cpu":"AMD Ryzen 9 7950X 16-Core Processor","cpu_threads":32,"memory_mib":127901,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 160:5","first_present":9061,"ms":5018.886},"presents":193,"frame_ms":{"p50":24.104,"p90":30.687,"p99":35.452,"max":37.382},"gpu_busy_ms_per_present":9.881,"worker_busy_pct":{"queue worker 0x0":98.212},"top_phases_ms_per_frame":{"Driver.Packet":25.511,"Driver.Packet.draw":22.967,"Driver.Draw":22.819,"Driver.Draw.shader_compile_and_link":13.106,"Graphics.Draw":12.756,"Graphics.Draw.draw_and_resource_release":11.108,"Shader.DrawStage":9.543,"Driver.Draw.draw_enqueued":7.12},"trace_dropped":false,"trace":"aps5-trace-50d7ce6043ef-2273323.json.gz"}
{"commit":"00e194906025","dirty":false,"env":{"APS5_DRAW_CACHE_ENTRIES":"4096","APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"1","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"160:5"},"gpu":"AMD Radeon RX 6650 XT (RADV NAVI23)","driver":"radv Mesa 26.2.4-arch1.1","os":"Linux 7.2.9-arch1-1","cpu":"AMD Ryzen 9 7950X 16-Core Processor","cpu_threads":32,"memory_mib":127901,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 160:5","first_present":9129,"ms":5016.902},"presents":228,"frame_ms":{"p50":21.286,"p90":26.482,"p99":29.974,"max":31.317},"gpu_busy_ms_per_present":9.533,"worker_busy_pct":{"queue worker 0x0":98.14},"top_phases_ms_per_frame":{"Driver.Packet":21.57,"Driver.Packet.draw":19.305,"Driver.Draw":19.175,"Graphics.Draw":11.556,"Graphics.Draw.draw_and_resource_release":10.172,"Driver.Draw.shader_compile_and_link":9.83,"Driver.Draw.draw_enqueued":7.179,"Shader.DrawStage":6.804},"trace_dropped":false,"trace":"aps5-trace-00e194906025-2357397.json.gz"}
{"commit":"00e194906025","dirty":false,"env":{"APS5_DRAW_CACHE_ENTRIES":"4096","APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"1","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"160:5"},"gpu":"AMD Radeon RX 6650 XT (RADV NAVI23)","driver":"radv Mesa 26.2.4-arch1.1","os":"Linux 7.2.9-arch1-1","cpu":"AMD Ryzen 9 7950X 16-Core Processor","cpu_threads":32,"memory_mib":127901,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 160:5","first_present":9260,"ms":5006.487},"presents":224,"frame_ms":{"p50":21.771,"p90":26.388,"p99":30.162,"max":30.76},"gpu_busy_ms_per_present":9.723,"worker_busy_pct":{"queue worker 0x0":98.259},"top_phases_ms_per_frame":{"Driver.Packet":21.938,"Driver.Packet.draw":19.753,"Driver.Draw":19.627,"Graphics.Draw":11.441,"Graphics.Draw.draw_and_resource_release":10.045,"Driver.Draw.shader_compile_and_link":10.011,"Driver.Draw.draw_enqueued":7.387,"Shader.DrawStage":6.799},"trace_dropped":false,"trace":"aps5-trace-00e194906025-2432685.json.gz"}
{"commit":"50d7ce6043ef","dirty":false,"env":{"APS5_DRAW_CACHE_ENTRIES":"4096","APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"1","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"160:5"},"gpu":"AMD Radeon RX 6650 XT (RADV NAVI23)","driver":"radv Mesa 26.2.4-arch1.1","os":"Linux 7.2.9-arch1-1","cpu":"AMD Ryzen 9 7950X 16-Core Processor","cpu_threads":32,"memory_mib":127901,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 160:5","first_present":8890,"ms":5011.761},"presents":198,"frame_ms":{"p50":23.322,"p90":30.306,"p99":38.693,"max":59.096},"gpu_busy_ms_per_present":9.689,"worker_busy_pct":{"queue worker 0x0":98.152},"top_phases_ms_per_frame":{"Driver.Packet":24.815,"Driver.Packet.draw":22.333,"Driver.Draw":22.192,"Driver.Draw.shader_compile_and_link":12.618,"Graphics.Draw":12.463,"Graphics.Draw.draw_and_resource_release":10.911,"Shader.DrawStage":9.24,"Driver.Draw.draw_enqueued":6.984},"trace_dropped":false,"trace":"aps5-trace-50d7ce6043ef-2512164.json.gz"}
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6296852458 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656#issuecomment-6296852458). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-20T17:21:26Z. --- Follow-up with matched Hades II (PPSA36082, 01.006.000) hub traces on the same RX 6650 XT/RADV machine. The four runs use baseline → candidate → candidate → baseline order, warm caches with title restart, the exact same eight-file save manifest, identical scheduled inputs, window and settings. Reviewed 155/175-second captures show the same character/camera position in the idle hub; animation phases differ. | Build/run | Frame p50 ms | Frame p99 ms | Shader compile/link ms per present | |---|---:|---:|---:| | baseline 1 | 24.104 | 35.452 | 13.106 | | candidate 1 | 21.286 | 29.974 | 9.830 | | candidate 2 | 21.771 | 30.162 | 10.011 | | baseline 2 | 23.322 | 38.693 | 12.618 | Both candidate medians are lower than both baseline medians. The average of the two run medians is about 9% lower, and shader compile/link time per present about 23% lower. This is limited evidence from two five-second idle-hub captures per build, **not a gameplay-wide speed claim**. As in the earlier comment, baseline `50d7ce6043ef3ae9d409e07e3589bdad207d2c53` is the Hades integration on main `d0852defa2a5fbc7f64ab20abddb7e1c24733345` with #6300/#6539 and local correctness fixes. Candidate `00e19490602563f74c50b6e189e8b1de4039ac1c` adds this PR's four commits through head `5892c846c75bb17c10e1c5ebe96bea0d2db30c5a`. This is **not stock-main versus the standalone PR** and does not replace that acceptance comparison. Capture: `APS5_TRACE_SECONDS=160:5`, identical `APS5_TRACE_EVENTS=1048576` capacity override to avoid truncated traces; no draw profiling or other diagnostic trace modes. Native stdout remained attached to a PTY recorded with util-linux `script`, rather than redirected to a game log file. Thus the event-capacity override is explicit rather than claiming literally only one `APS5_TRACE_*` variable. All four traces report no dropped events, and all four runs close normally and restore the kernel setting. Native core validation was disabled; the previously attached matched focused GPU validation results still apply to these unchanged source pins. [Trace/evidence archive](https://github.com/JJenkx/AnyPS5/releases/download/game-library-checks-20261016/20261020-pr5656-hades-matched-traces.tar.gz) contains all four traces and `trace_digest.py` outputs, summary lines, native reports, terminal recordings, reviewed hub captures, exact candidate delta and reproduction harness. No save files or game assets are included. Official summary lines, in run order: ```json {"commit":"50d7ce6043ef","dirty":false,"env":{"APS5_DRAW_CACHE_ENTRIES":"4096","APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"1","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"160:5"},"gpu":"AMD Radeon RX 6650 XT (RADV NAVI23)","driver":"radv Mesa 26.2.4-arch1.1","os":"Linux 7.2.9-arch1-1","cpu":"AMD Ryzen 9 7950X 16-Core Processor","cpu_threads":32,"memory_mib":127901,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 160:5","first_present":9061,"ms":5018.886},"presents":193,"frame_ms":{"p50":24.104,"p90":30.687,"p99":35.452,"max":37.382},"gpu_busy_ms_per_present":9.881,"worker_busy_pct":{"queue worker 0x0":98.212},"top_phases_ms_per_frame":{"Driver.Packet":25.511,"Driver.Packet.draw":22.967,"Driver.Draw":22.819,"Driver.Draw.shader_compile_and_link":13.106,"Graphics.Draw":12.756,"Graphics.Draw.draw_and_resource_release":11.108,"Shader.DrawStage":9.543,"Driver.Draw.draw_enqueued":7.12},"trace_dropped":false,"trace":"aps5-trace-50d7ce6043ef-2273323.json.gz"} {"commit":"00e194906025","dirty":false,"env":{"APS5_DRAW_CACHE_ENTRIES":"4096","APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"1","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"160:5"},"gpu":"AMD Radeon RX 6650 XT (RADV NAVI23)","driver":"radv Mesa 26.2.4-arch1.1","os":"Linux 7.2.9-arch1-1","cpu":"AMD Ryzen 9 7950X 16-Core Processor","cpu_threads":32,"memory_mib":127901,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 160:5","first_present":9129,"ms":5016.902},"presents":228,"frame_ms":{"p50":21.286,"p90":26.482,"p99":29.974,"max":31.317},"gpu_busy_ms_per_present":9.533,"worker_busy_pct":{"queue worker 0x0":98.14},"top_phases_ms_per_frame":{"Driver.Packet":21.57,"Driver.Packet.draw":19.305,"Driver.Draw":19.175,"Graphics.Draw":11.556,"Graphics.Draw.draw_and_resource_release":10.172,"Driver.Draw.shader_compile_and_link":9.83,"Driver.Draw.draw_enqueued":7.179,"Shader.DrawStage":6.804},"trace_dropped":false,"trace":"aps5-trace-00e194906025-2357397.json.gz"} {"commit":"00e194906025","dirty":false,"env":{"APS5_DRAW_CACHE_ENTRIES":"4096","APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"1","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"160:5"},"gpu":"AMD Radeon RX 6650 XT (RADV NAVI23)","driver":"radv Mesa 26.2.4-arch1.1","os":"Linux 7.2.9-arch1-1","cpu":"AMD Ryzen 9 7950X 16-Core Processor","cpu_threads":32,"memory_mib":127901,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 160:5","first_present":9260,"ms":5006.487},"presents":224,"frame_ms":{"p50":21.771,"p90":26.388,"p99":30.162,"max":30.76},"gpu_busy_ms_per_present":9.723,"worker_busy_pct":{"queue worker 0x0":98.259},"top_phases_ms_per_frame":{"Driver.Packet":21.938,"Driver.Packet.draw":19.753,"Driver.Draw":19.627,"Graphics.Draw":11.441,"Graphics.Draw.draw_and_resource_release":10.045,"Driver.Draw.shader_compile_and_link":10.011,"Driver.Draw.draw_enqueued":7.387,"Shader.DrawStage":6.799},"trace_dropped":false,"trace":"aps5-trace-00e194906025-2432685.json.gz"} {"commit":"50d7ce6043ef","dirty":false,"env":{"APS5_DRAW_CACHE_ENTRIES":"4096","APS5_HOST_IMPORT_MIB":"16384","APS5_PAD_INPUT_FILE":"<path>","APS5_PIPELINED_DRAWS":"1","APS5_TRACE_EVENTS":"1048576","APS5_TRACE_SECONDS":"160:5"},"gpu":"AMD Radeon RX 6650 XT (RADV NAVI23)","driver":"radv Mesa 26.2.4-arch1.1","os":"Linux 7.2.9-arch1-1","cpu":"AMD Ryzen 9 7950X 16-Core Processor","cpu_threads":32,"memory_mib":127901,"title_id":"PPSA36082","title":"Hades II","content_version":"01.006.000","resolution":"1920x1080","window":{"spec":"seconds 160:5","first_present":8890,"ms":5011.761},"presents":198,"frame_ms":{"p50":23.322,"p90":30.306,"p99":38.693,"max":59.096},"gpu_busy_ms_per_present":9.689,"worker_busy_pct":{"queue worker 0x0":98.152},"top_phases_ms_per_frame":{"Driver.Packet":24.815,"Driver.Packet.draw":22.333,"Driver.Draw":22.192,"Driver.Draw.shader_compile_and_link":12.618,"Graphics.Draw":12.463,"Graphics.Draw.draw_and_resource_release":10.911,"Shader.DrawStage":9.24,"Driver.Draw.draw_enqueued":6.984},"trace_dropped":false,"trace":"aps5-trace-50d7ce6043ef-2512164.json.gz"} ```
EdouardSence commented 2026-10-20 20:22:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-20T20:22:25Z.


A small positive result on ASTRO BOT now that #7844 removes the import-budget regression that hid it in my earlier A/B.

Builds: the merge parent 2185dbf92^1 and the merge 2185dbf92, both + #7844 (pre / post). Linux, RX 9070 XT / RADV Mesa 26.2.4, PPSA21567 01.019.000, Sky Garden (-lvl underwater_aerial_garden), headless, level start, APS5_TRACE_SECONDS=90:50, warm caches, order pre → post → post → pre.

Run Frame p50 ms p90 ms p99 ms
pre 1 258.9 275.8 319.9
post 1 253.9 273.3 280.4
post 2 253.2 272.8 280.0
pre 2 257.8 278.9 401.4

Both post medians are below both pre medians: about 2 % lower frame time, with a tighter p99. GPU busy time per present is unchanged (~136 ms), so the gain is on the CPU side.

Edit: where the remaining data-only misses come from on this level (corrected). A local counter in lookupDraw's data-candidate loop (post build, Sky Garden, not pushed) shows that about 87 % of the stage variants it checks are rejected because a user data word the stage uses changed. The changing words come in steps of four (w0, w4 … w28), which first made me think of inline buffer descriptors. A prototype that reuses the stage when only inline V# words (or user words the shader only reads at run time through push constants) change, and patches the bindings and push constants, passes APS5_VERIFY_DRAW_DATA_HITS but gives no measurable gain (255–258 ms against 256–259 ms). Classifying what still blocks the candidates explains why:

Rejected candidates, by the first blocking word Share
a word the SRT walk reads memory through (asBase, a per-draw table pointer) ~70 %
a vertex fetch table register ~25 %
a value word that is not a plain V# copy ~4 %

So on this title the per-draw cost comes from per-object descriptor tables in memory, at a new address and with new contents for each draw. The existing relocation (relocateDrawEntry) only covers moved tables with the same contents. Reusing a stage here would need the captured table to be re-read and its descriptors patched without recompiling, like the flattened-SRT data positions, but for tables reached through a user pointer. I haven't tried that.

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

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6300651006 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5656#issuecomment-6300651006). Originally posted by [EdouardSence](https://github.com/EdouardSence) on 2026-10-20T20:22:25Z. --- A small positive result on ASTRO BOT now that #7844 removes the import-budget regression that hid it in my earlier A/B. Builds: the merge parent `2185dbf92^1` and the merge `2185dbf92`, both + #7844 (`pre` / `post`). Linux, RX 9070 XT / RADV Mesa 26.2.4, PPSA21567 01.019.000, Sky Garden (`-lvl underwater_aerial_garden`), headless, level start, `APS5_TRACE_SECONDS=90:50`, warm caches, order pre → post → post → pre. | Run | Frame p50 ms | p90 ms | p99 ms | |---|---:|---:|---:| | pre 1 | 258.9 | 275.8 | 319.9 | | post 1 | 253.9 | 273.3 | 280.4 | | post 2 | 253.2 | 272.8 | 280.0 | | pre 2 | 257.8 | 278.9 | 401.4 | Both post medians are below both pre medians: about 2 % lower frame time, with a tighter p99. GPU busy time per present is unchanged (~136 ms), so the gain is on the CPU side. **Edit: where the remaining data-only misses come from on this level (corrected).** A local counter in `lookupDraw`'s data-candidate loop (post build, Sky Garden, not pushed) shows that about 87 % of the stage variants it checks are rejected because a user data word the stage uses changed. The changing words come in steps of four (w0, w4 … w28), which first made me think of inline buffer descriptors. A prototype that reuses the stage when only inline V# words (or user words the shader only reads at run time through push constants) change, and patches the bindings and push constants, passes `APS5_VERIFY_DRAW_DATA_HITS` but gives no measurable gain (255–258 ms against 256–259 ms). Classifying what still blocks the candidates explains why: | Rejected candidates, by the first blocking word | Share | |---|---:| | a word the SRT walk reads memory through (`asBase`, a per-draw table pointer) | ~70 % | | a vertex fetch table register | ~25 % | | a value word that is not a plain V# copy | ~4 % | So on this title the per-draw cost comes from per-object descriptor tables in memory, at a new address and with new contents for each draw. The existing relocation (`relocateDrawEntry`) only covers moved tables with the same contents. Reusing a stage here would need the captured table to be re-read and its descriptors patched without recompiling, like the flattened-SRT data positions, but for tables reached through a user pointer. I haven't tried that. *Tested and written by Claude (AI assistant) on a contributor's machine.* AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!5656
No description provided.