perf(agc): journal the pipelines of a run and build them ahead on the next one #5875

Merged
adriadam10 merged 7 commits from upstream-pr/5875 into main 2026-10-16 11:19:19 +00:00
adriadam10 commented 2026-10-14 14:31:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T14:31:43Z.


What

Every run compiles its Vulkan pipelines again: the shader cache keeps the recompiled SPIR-V and the driver's VkPipelineCache keeps the driver's binaries, but the specialized modules, the VkPipeline objects and the graphics pipeline libraries are built on the queue worker at the first draw or dispatch of each configuration, under GpuMutex. On a warm run that is the remaining first-use hitch; on a cold run it is paid once per configuration whenever the title reaches it.

This PR journals the pipelines of a run and builds them ahead on the next one:

  • Graphics::CachedPipeline and the compute pipeline creation in VulkanDevice::dispatch append each pipeline they build to pipelines.journal, next to the shader cache entries: the materialized RecompileResult of every stage (specialized SPIR-V, bindings, push constants; ShaderDiskCache::EncodeResult, which existed unused) and a GraphicsPipelineRecipe (stage identities, vertex input layout, descriptor set layout keys and exactly the State fields the Pipeline constructor reads, CanonicalPipelineState). A writer thread appends; modules and recipes are deduplicated by content; a torn tail from a crashed run is cut at a record boundary before the next append; a header mismatch (format, RuntimeAbi::Version, recompiler SourceVersion, device fingerprint) starts the file over. The file names the GPU and driver it was written for (the properties the driver's pipeline cache file is named by), so another device's modules are never replayed. Two runs sharing the directory take turns on pipelines.journal.lock and keep each other's records; a read failure never starts the file over.
  • When a VulkanDevice is created with a window, the journal is loaded and its pipelines are built on hardware_concurrency() / 2 threads while the title loads, through the same CachedPipeline / createComputePipeline paths and into the same stores, so the first draw or dispatch of a configuration an earlier run already built finds its pipeline resident. A headless device (the one ShaderRegistry or the first draw creates before Driver::AttachWindow) starts its replay at its first draw or dispatch instead, since the window's device usually replaces it first; a device cancels its replay before it is replaced or destroyed, and a replaced device destroys its pipelines then. A draw that arrives first builds the pipeline itself; the first inserted wins (find-or-insert, as computePipelines already did). A replayed pipeline enters the store at its least recently used end and a full store takes none, and its optimized (link-time-optimized) relink waits for the first draw that binds it, so the title's own pipelines come first in both the store and the relink thread.
  • The pipeline stores key on RecompileResult::Identity: a 128-bit hash of the module words (SharedSpirv::ContentHash, computed once per shared module and dropped by a write), the specialization constants, the host subgroup width, the workgroup memory slice and the bindings' shape. It is the same on every run, unlike the process-lifetime variant ids, which is what lets a replayed entry be found; in-process it also lets two results with the same module share a pipeline (a recompile with useCache = false used to get its own; the pipeline cache and library tests now change the module rather than the variant id to get a different pipeline). A generated stage (rect-list pair, geometry) is keyed by its identity like the others, since its module depends on device limits. The store key additionally covers the color component mapping, the depth target's sample count and whether a depth bias clamp is set, which the constructor reads (SplitsAlternateAlpha, ValidateSampleLocations, the depth bias clamp feature check) but the key did not name.
  • CachedPipeline builds outside the store's mutex, and LinkPipelineFromLibraries builds the library parts and the link outside the library store's mutex (the part build already did so for the registration prebuild): a draw whose pipeline is resident is not held behind another thread's build, and replay threads build in parallel, which drivers that compile in parallel turn into throughput.
  • VulkanDevice::createComputePipeline holds the compute module, layout and pipeline creation that dispatch had inline, shared with the replay; APS5_VERIFY_SET_LAYOUTS=1 now also checks a dispatch's set layout against the one DescribeSetLayouts derives from its shader, which is the layout the replay builds over.
  • Switches: APS5_NO_PIPELINE_JOURNAL=1 disables recording and replay (the lavapipe test suite, which shares one cache directory, runs with it off except for the journal's own tests); APS5_PIPELINE_JOURNAL_THREADS, APS5_PIPELINE_JOURNAL_ENTRIES (1024, the first recorded, which a run reaches first), APS5_PIPELINE_STORE_ENTRIES (the store's LRU bound, 1024 as before) and APS5_PIPELINE_JOURNAL_MAX_MIB (1024). APS5_PROFILE_DRAW=1 prints a [pipeline-journal] line when the replay finishes and at teardown. The journal is disabled without a shader cache directory.
  • Docs: docs/dev/ARCHITECTURE.md, docs/user/USAGE.md (Pipeline journal) and a technical debt entry (append-only file, bounds, the compute layout check, the format number as the codec's only guard, deferred relinks).

Not in this PR, on purpose: creating pipelines ahead of the packet on the first run (#4897, #5441, #5115 cover the first-run paths), and any change to what the recompiler emits.

Tested

Linux (Ubuntu 24.04, GCC 13.3, Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=OFF), lavapipe (Mesa 25.2.8, LLVM 20.1.2), 4 cores.

  • New agc_pipeline_journal (agc_driver_graphics_tests --pipeline-journal, mock Vulkan): the recipe codec round-trips byte for byte and refuses every truncation; the store key of the original state, of the canonical state and of the decoded recipe is the same, a field the pipeline does not read (viewport, target address, layers) leaves it unchanged, the component mapping changes it and a depth bias clamp changes it only with depth bias on; identities are shared by copies, change on a write and on specialization constants or subgroup width; the journal records one graphics and one compute pipeline with three modules once, not again on repeat; a replay on a fresh mock device builds the graphics pipeline so the same configuration hits the store without creating, and hands the compute result (words, bindings, push constants, subgroup) to its hook; a tail cut inside the last record's padding is recovered from (the next append is record aligned, nothing is dropped, the cut pipeline is recorded again without its module); a cancelled replay stops cleanly; no Vulkan objects leak.

  • New agc_driver_pipeline_journal (lavapipe, end to end): a device dispatches a compute program and draws a triangle into an A1R5G5B5 target (both read back and checked), which records two pipelines; a second device replays them before any work (replayedGraphics == 1, replayedCompute == 1, nothing rejected or failed), its dispatch builds no pipeline, its draw finds the replayed one in the store and renders the same texels, and nothing is recorded again. Runs with APS5_VERIFY_SET_LAYOUTS=1.

  • agc_pipeline_cache, agc_pipeline_library, agc_pipeline_library_fast_only: updated from variant ids to module content (a different variant id with the same module shares the pipeline; a changed module does not).

  • agc_driver_pipeline_journal_tests --benchmark 32 (synthetic, 32 distinct compute programs dispatched for the first time on three devices in turn; wall times, lavapipe, 2 replay threads):

    run pipelines built at the dispatch 32 first dispatches
    driver cache cold, no journal 32 1494 ms (46.7 ms each)
    driver cache warm, no journal 32 1468 ms (45.9 ms each)
    driver cache warm, journal replayed 0 (32 built by the replay in 622 ms on 2 threads, done 653 ms after the device opened) 57 ms (1.8 ms each)

    With lavapipe's own on-disk shader cache disabled (MESA_SHADER_CACHE_DISABLE=true) every first dispatch costs about 1.5 s on all three runs: lavapipe JITs the shader at the first dispatch, not at vkCreateComputePipelines, so a replay cannot move that cost. The replay moves what the driver does at pipeline creation (here about 20 ms per pipeline with the JIT cached); on drivers that compile at creation (RADV, NVIDIA, ANV) that is the whole compile, which this environment cannot measure.

  • Regression: ctest -R "^(agc_|shader_|guest_shader_)" on the final build, 536/536 passed (80 skipped for device features lavapipe lacks); the three pipeline tests above included.

  • python3 tools/check_conventions.py --base origin/main and tools/check_test_registration.py build pass.

  • An adversarial review pass over the diff (five dimensions: concurrency and lifetime, key correctness, file format, Vulkan semantics, repository rules) found the device replacement race, the uncancellable replay, the shared-directory write hazard, the generated-stage keying, the depth bias clamp, the padding-torn tail, the index decode cost, the read-failure truncation, the relink flood and the store eviction order; all are fixed in this PR with the tests above.

  • Not run: Windows, a title, a hardware GPU. The journal changes nothing a title renders; what it changes is when pipelines are built, so a title run with APS5_PROFILE_DRAW=1 (the [pipeline-journal] and [pipecache] lines of a second run) is the measurement that remains to be taken.

Checklist

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

🤖 Generated with Claude Code

https://claude.ai/code/session_01P6hw3kRAuQdfcU9YCZgaoK

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4859483192 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5875). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T14:31:43Z. --- ### What Every run compiles its Vulkan pipelines again: the shader cache keeps the recompiled SPIR-V and the driver's `VkPipelineCache` keeps the driver's binaries, but the specialized modules, the `VkPipeline` objects and the graphics pipeline libraries are built on the queue worker at the first draw or dispatch of each configuration, under `GpuMutex`. On a warm run that is the remaining first-use hitch; on a cold run it is paid once per configuration whenever the title reaches it. This PR journals the pipelines of a run and builds them ahead on the next one: - `Graphics::CachedPipeline` and the compute pipeline creation in `VulkanDevice::dispatch` append each pipeline they build to `pipelines.journal`, next to the shader cache entries: the materialized `RecompileResult` of every stage (specialized SPIR-V, bindings, push constants; `ShaderDiskCache::EncodeResult`, which existed unused) and a `GraphicsPipelineRecipe` (stage identities, vertex input layout, descriptor set layout keys and exactly the `State` fields the `Pipeline` constructor reads, `CanonicalPipelineState`). A writer thread appends; modules and recipes are deduplicated by content; a torn tail from a crashed run is cut at a record boundary before the next append; a header mismatch (format, `RuntimeAbi::Version`, recompiler `SourceVersion`, device fingerprint) starts the file over. The file names the GPU and driver it was written for (the properties the driver's pipeline cache file is named by), so another device's modules are never replayed. Two runs sharing the directory take turns on `pipelines.journal.lock` and keep each other's records; a read failure never starts the file over. - When a `VulkanDevice` is created with a window, the journal is loaded and its pipelines are built on `hardware_concurrency() / 2` threads while the title loads, through the same `CachedPipeline` / `createComputePipeline` paths and into the same stores, so the first draw or dispatch of a configuration an earlier run already built finds its pipeline resident. A headless device (the one `ShaderRegistry` or the first draw creates before `Driver::AttachWindow`) starts its replay at its first draw or dispatch instead, since the window's device usually replaces it first; a device cancels its replay before it is replaced or destroyed, and a replaced device destroys its pipelines then. A draw that arrives first builds the pipeline itself; the first inserted wins (find-or-insert, as `computePipelines` already did). A replayed pipeline enters the store at its least recently used end and a full store takes none, and its optimized (link-time-optimized) relink waits for the first draw that binds it, so the title's own pipelines come first in both the store and the relink thread. - The pipeline stores key on `RecompileResult::Identity`: a 128-bit hash of the module words (`SharedSpirv::ContentHash`, computed once per shared module and dropped by a write), the specialization constants, the host subgroup width, the workgroup memory slice and the bindings' shape. It is the same on every run, unlike the process-lifetime variant ids, which is what lets a replayed entry be found; in-process it also lets two results with the same module share a pipeline (a recompile with `useCache = false` used to get its own; the pipeline cache and library tests now change the module rather than the variant id to get a different pipeline). A generated stage (rect-list pair, geometry) is keyed by its identity like the others, since its module depends on device limits. The store key additionally covers the color component mapping, the depth target's sample count and whether a depth bias clamp is set, which the constructor reads (`SplitsAlternateAlpha`, `ValidateSampleLocations`, the depth bias clamp feature check) but the key did not name. - `CachedPipeline` builds outside the store's mutex, and `LinkPipelineFromLibraries` builds the library parts and the link outside the library store's mutex (the part build already did so for the registration prebuild): a draw whose pipeline is resident is not held behind another thread's build, and replay threads build in parallel, which drivers that compile in parallel turn into throughput. - `VulkanDevice::createComputePipeline` holds the compute module, layout and pipeline creation that `dispatch` had inline, shared with the replay; `APS5_VERIFY_SET_LAYOUTS=1` now also checks a dispatch's set layout against the one `DescribeSetLayouts` derives from its shader, which is the layout the replay builds over. - Switches: `APS5_NO_PIPELINE_JOURNAL=1` disables recording and replay (the lavapipe test suite, which shares one cache directory, runs with it off except for the journal's own tests); `APS5_PIPELINE_JOURNAL_THREADS`, `APS5_PIPELINE_JOURNAL_ENTRIES` (1024, the first recorded, which a run reaches first), `APS5_PIPELINE_STORE_ENTRIES` (the store's LRU bound, 1024 as before) and `APS5_PIPELINE_JOURNAL_MAX_MIB` (1024). `APS5_PROFILE_DRAW=1` prints a `[pipeline-journal]` line when the replay finishes and at teardown. The journal is disabled without a shader cache directory. - Docs: `docs/dev/ARCHITECTURE.md`, `docs/user/USAGE.md` (Pipeline journal) and a technical debt entry (append-only file, bounds, the compute layout check, the format number as the codec's only guard, deferred relinks). Not in this PR, on purpose: creating pipelines ahead of the packet on the first run (#4897, #5441, #5115 cover the first-run paths), and any change to what the recompiler emits. ### Tested Linux (Ubuntu 24.04, GCC 13.3, Release, `BUILD_TESTING=ON`, `ANYPS5_ENABLE_SPIRV_TOOLS=OFF`), lavapipe (Mesa 25.2.8, LLVM 20.1.2), 4 cores. - New `agc_pipeline_journal` (`agc_driver_graphics_tests --pipeline-journal`, mock Vulkan): the recipe codec round-trips byte for byte and refuses every truncation; the store key of the original state, of the canonical state and of the decoded recipe is the same, a field the pipeline does not read (viewport, target address, layers) leaves it unchanged, the component mapping changes it and a depth bias clamp changes it only with depth bias on; identities are shared by copies, change on a write and on specialization constants or subgroup width; the journal records one graphics and one compute pipeline with three modules once, not again on repeat; a replay on a fresh mock device builds the graphics pipeline so the same configuration hits the store without creating, and hands the compute result (words, bindings, push constants, subgroup) to its hook; a tail cut inside the last record's padding is recovered from (the next append is record aligned, nothing is dropped, the cut pipeline is recorded again without its module); a cancelled replay stops cleanly; no Vulkan objects leak. - New `agc_driver_pipeline_journal` (lavapipe, end to end): a device dispatches a compute program and draws a triangle into an A1R5G5B5 target (both read back and checked), which records two pipelines; a second device replays them before any work (`replayedGraphics == 1`, `replayedCompute == 1`, nothing rejected or failed), its dispatch builds no pipeline, its draw finds the replayed one in the store and renders the same texels, and nothing is recorded again. Runs with `APS5_VERIFY_SET_LAYOUTS=1`. - `agc_pipeline_cache`, `agc_pipeline_library`, `agc_pipeline_library_fast_only`: updated from variant ids to module content (a different variant id with the same module shares the pipeline; a changed module does not). - `agc_driver_pipeline_journal_tests --benchmark 32` (synthetic, 32 distinct compute programs dispatched for the first time on three devices in turn; wall times, lavapipe, 2 replay threads): | run | pipelines built at the dispatch | 32 first dispatches | |---|---|---| | driver cache cold, no journal | 32 | 1494 ms (46.7 ms each) | | driver cache warm, no journal | 32 | 1468 ms (45.9 ms each) | | driver cache warm, journal replayed | 0 (32 built by the replay in 622 ms on 2 threads, done 653 ms after the device opened) | 57 ms (1.8 ms each) | With lavapipe's own on-disk shader cache disabled (`MESA_SHADER_CACHE_DISABLE=true`) every first dispatch costs about 1.5 s on all three runs: lavapipe JITs the shader at the first dispatch, not at `vkCreateComputePipelines`, so a replay cannot move that cost. The replay moves what the driver does at pipeline creation (here about 20 ms per pipeline with the JIT cached); on drivers that compile at creation (RADV, NVIDIA, ANV) that is the whole compile, which this environment cannot measure. - Regression: `ctest -R "^(agc_|shader_|guest_shader_)"` on the final build, 536/536 passed (80 skipped for device features lavapipe lacks); the three pipeline tests above included. - `python3 tools/check_conventions.py --base origin/main` and `tools/check_test_registration.py build` pass. - An adversarial review pass over the diff (five dimensions: concurrency and lifetime, key correctness, file format, Vulkan semantics, repository rules) found the device replacement race, the uncancellable replay, the shared-directory write hazard, the generated-stage keying, the depth bias clamp, the padding-torn tail, the index decode cost, the read-failure truncation, the relink flood and the store eviction order; all are fixed in this PR with the tests above. - Not run: Windows, a title, a hardware GPU. The journal changes nothing a title renders; what it changes is when pipelines are built, so a title run with `APS5_PROFILE_DRAW=1` (the `[pipeline-journal]` and `[pipecache]` lines of a second run) is the measurement that remains to be taken. ### 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: none - [x] GPUs tested: lavapipe (Mesa 25.2.8, LLVM 20.1.2), Ubuntu 24.04 - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01P6hw3kRAuQdfcU9YCZgaoK
adriadam10 commented 2026-10-14 16:05:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T16:05:58Z.


Rebased on main e34c47921 (after #5861, #757 and #758).

  • New commit 569ff84ea: #5861 added sampleLocationGrid and perSampleShading to State and to the pipeline key; the recipe codec and CanonicalPipelineState now carry both (the sizeof(State) guard caught it: 664 → 688). agc_pipeline_journal checks that a grid + per-sample state round-trips and keys the same pipeline; removing the field from the codec makes it fail.
  • ShaderDiskCache.cpp size guards updated to the merged layouts.
    Linux RADV, libSceAgc + libSceAgcDriver scope: 577/578, agc_driver_tessellation segfaults the same on main. #5925 is stacked on this.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6172695756 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5875#issuecomment-6172695756). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T16:05:58Z. --- Rebased on main e34c47921 (after #5861, #757 and #758). - New commit 569ff84ea: #5861 added `sampleLocationGrid` and `perSampleShading` to `State` and to the pipeline key; the recipe codec and `CanonicalPipelineState` now carry both (the `sizeof(State)` guard caught it: 664 → 688). `agc_pipeline_journal` checks that a grid + per-sample state round-trips and keys the same pipeline; removing the field from the codec makes it fail. - `ShaderDiskCache.cpp` size guards updated to the merged layouts. Linux RADV, libSceAgc + libSceAgcDriver scope: 577/578, `agc_driver_tessellation` segfaults the same on `main`. #5925 is stacked on this.
fma-rc commented 2026-10-14 18:01:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-14T18:01:36Z.


On main e34c47921 with this PR, pipeline_journal passes on NVIDIA, RADV and lavapipe. My Playroom numbers are on PR 5925, which includes this one, so they don't separate the journal from the lookahead.

Two things from reading the code. APS5_NO_PIPELINE_JOURNAL, APS5_PIPELINE_JOURNAL_MAX_MIB and APS5_PIPELINE_STORE_ENTRIES are environment switches. And FileLock carries on without the lock when open/flock (or CreateFileW/LockFileEx) fails, so in that case two runs sharing the directory append without the turn-taking the description promises.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6174920220 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5875#issuecomment-6174920220). Originally posted by [fma-rc](https://github.com/fma-rc) on 2026-10-14T18:01:36Z. --- On `main` e34c47921 with this PR, `pipeline_journal` passes on NVIDIA, RADV and lavapipe. My Playroom numbers are on PR 5925, which includes this one, so they don't separate the journal from the lookahead. Two things from reading the code. `APS5_NO_PIPELINE_JOURNAL`, `APS5_PIPELINE_JOURNAL_MAX_MIB` and `APS5_PIPELINE_STORE_ENTRIES` are environment switches. And `FileLock` carries on without the lock when `open`/`flock` (or `CreateFileW`/`LockFileEx`) fails, so in that case two runs sharing the directory append without the turn-taking the description promises.
orishamir commented 2026-10-14 20:07:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by orishamir on 2026-10-14T20:07:25Z.


Windows + NVIDIA title runs, the measurement the description says is missing. Windows 11, RTX 4080 (NVIDIA 616.56), WinLibs GCC 15.2.0 r7, Release: main e34c47921, this head 569ff84ea, and #5925's 3339ddd3a, which includes it. The titles are free catalog homebrew: SuperTuxKart (PPSA69421, start screen) and vkQuake (PPSA99010) with LibreQuake data. Each build has its own run directory, so run 1 is cold and later runs replay that directory's journal. Data, gdb stacks and summary lines: https://gist.github.com/orishamir/921d32e578048a87ee791f94cd82713a

SuperTuxKart exits with 0xC0000374 (heap corruption) on the first run that replays the journal.

  • First warm run after a cold run: it crashes 16 to 19 s in, in 4 of 5 tries (1 with this PR, 1 with #5925, and 2 under gdb with this PR). The fifth, #5925 with APS5_NO_SUBMIT_LOOKAHEAD=1, ran 100 s.
  • The same sequence with APS5_NO_PIPELINE_JOURNAL=1 on the warm run: 0 of 3. main: 0 of 7 warm runs. Later warm runs on the same journal: 1 of 5 (the one right after a crash).
  • Both gdb stacks show a thread exiting (_endthreadex from libwinpthread). There, libSceAgcDriver.prx's TLS callback runs run_dtor_list, MinGW's list of thread_local destructors, and its free reports the corruption. This build uses emulated TLS, and CachedPipeline's new thread_local std::vector<std::byte> key (Pipeline.cpp:944) is one of those variables. A replay thread that builds a graphics pipeline goes through CachedPipeline and creates it, and those threads exit when the replay ends.
  • As a local experiment only, I made that key a plain local. The first warm run then crashed in 0 of 3 tries.
  • This PR's tests pass here, 3 of 3 each: agc_pipeline_journal, agc_driver_pipeline_journal, agc_pipeline_cache and the three agc_pipeline_library* tests.

vkQuake's NVIDIA compile stall (#4977) stays. Every run with every build hits radv/ps5: the GPU has not reached submission 19 (at 18) in 10 s three times and then quits with vkWaitForFences failed with code -4. With this PR the warm runs replay the journal (15 pipelines, 20 modules, 4.3 MiB, built in 137 ms on 16 threads), so 4 of the 5 large compute modules are built before the demo. The fifth, program 0x20bf92000 (349,278 SPIR-V words), is still created at its dispatch, not by the replay, and the stall follows it in every run.

Frame rate: no difference on SuperTuxKart's start screen. In presents per second from 30 s on: main 5.51 cold and 5.79 warm (the session's first main arm was slower, 4.42 and 5.14), this PR 5.49 cold, #5925 5.81 cold, #5925 with the lookahead off 5.67 cold and 5.88 warm.

AI-assisted: yes (Claude Code Opus 5.5)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6177299737 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5875#issuecomment-6177299737). Originally posted by [orishamir](https://github.com/orishamir) on 2026-10-14T20:07:25Z. --- Windows + NVIDIA title runs, the measurement the description says is missing. Windows 11, RTX 4080 (NVIDIA 616.56), WinLibs GCC 15.2.0 r7, Release: `main` e34c47921, this head 569ff84ea, and #5925's 3339ddd3a, which includes it. The titles are free catalog homebrew: SuperTuxKart (PPSA69421, start screen) and vkQuake (PPSA99010) with LibreQuake data. Each build has its own run directory, so run 1 is cold and later runs replay that directory's journal. Data, gdb stacks and summary lines: https://gist.github.com/orishamir/921d32e578048a87ee791f94cd82713a **SuperTuxKart exits with 0xC0000374 (heap corruption) on the first run that replays the journal.** - First warm run after a cold run: it crashes 16 to 19 s in, in 4 of 5 tries (1 with this PR, 1 with #5925, and 2 under gdb with this PR). The fifth, #5925 with `APS5_NO_SUBMIT_LOOKAHEAD=1`, ran 100 s. - The same sequence with `APS5_NO_PIPELINE_JOURNAL=1` on the warm run: 0 of 3. `main`: 0 of 7 warm runs. Later warm runs on the same journal: 1 of 5 (the one right after a crash). - Both gdb stacks show a thread exiting (`_endthreadex` from libwinpthread). There, `libSceAgcDriver.prx`'s TLS callback runs `run_dtor_list`, MinGW's list of `thread_local` destructors, and its `free` reports the corruption. This build uses emulated TLS, and `CachedPipeline`'s new `thread_local std::vector<std::byte> key` ([Pipeline.cpp:944](https://github.com/boykopovar/AnyPS5/blob/569ff84ea2589a9c886dca37b5c9ddcea70049bd/core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp#L944)) is one of those variables. A replay thread that builds a graphics pipeline goes through `CachedPipeline` and creates it, and those threads exit when the replay ends. - As a local experiment only, I made that `key` a plain local. The first warm run then crashed in 0 of 3 tries. - This PR's tests pass here, 3 of 3 each: `agc_pipeline_journal`, `agc_driver_pipeline_journal`, `agc_pipeline_cache` and the three `agc_pipeline_library*` tests. **vkQuake's NVIDIA compile stall (#4977) stays.** Every run with every build hits `radv/ps5: the GPU has not reached submission 19 (at 18) in 10 s` three times and then quits with `vkWaitForFences failed with code -4`. With this PR the warm runs replay the journal (15 pipelines, 20 modules, 4.3 MiB, built in 137 ms on 16 threads), so 4 of the 5 large compute modules are built before the demo. The fifth, program 0x20bf92000 (349,278 SPIR-V words), is still created at its dispatch, not by the replay, and the stall follows it in every run. **Frame rate:** no difference on SuperTuxKart's start screen. In presents per second from 30 s on: `main` 5.51 cold and 5.79 warm (the session's first `main` arm was slower, 4.42 and 5.14), this PR 5.49 cold, #5925 5.81 cold, #5925 with the lookahead off 5.67 cold and 5.88 warm. AI-assisted: yes (Claude Code Opus 5.5)
fdfawef324 commented 2026-10-14 23:22:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fdfawef324 on 2026-10-14T23:22:27Z.


Windows Server 2025, RTX 3060 (NVIDIA 591.86), WinLibs GCC 15.2.0 r7, Release. Head 569ff84ea, control main 0ae1deb85. This reproduces the 0xC0000374 from the comment above without a title.

  • prx_thread_local_destructors (Windows only, added by #4029; this PR's windows CI job was skipped) fails on 569ff84ea: libSceAgcDriver.prx: ...CachedPipeline... registers a thread_local destructor. It passes on main.
  • Under gdb, which turns on the Windows debug heap, each run stops with Critical error detected c0000374 in libSceAgcDriver.prx's run_dtor_list <- tls_callback as a thread exits:
    • agc_driver_pipeline_journal_tests: 10 of 10 (a replay thread)
    • agc_driver_draw_cache_reuse_tests with APS5_NO_PIPELINE_JOURNAL=1: 10 of 10 (thread queue worker 0x0); main: 0 of 10. So the journal is not required: any thread that ran CachedPipeline hits it when it exits.
  • Local experiment: auto& key = HostThreadLocal<std::vector<std::byte>, PipelineKeyStorage>();, the #4029 pattern. Both tests: 0 of 10 under gdb, and the check passes.
  • Without a debugger, ctest --repeat until-fail:10 passes 10 of 10 on the head and with the experiment for agc_pipeline_journal, agc_driver_pipeline_journal, agc_pipeline_cache and agc_pipeline_library{,_off,_fast_only}.

Not tested: a title, Linux, AMD.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6180678063 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5875#issuecomment-6180678063). Originally posted by [fdfawef324](https://github.com/fdfawef324) on 2026-10-14T23:22:27Z. --- Windows Server 2025, RTX 3060 (NVIDIA 591.86), WinLibs GCC 15.2.0 r7, Release. Head 569ff84ea, control `main` 0ae1deb85. This reproduces the 0xC0000374 from the comment above without a title. - `prx_thread_local_destructors` (Windows only, added by #4029; this PR's `windows` CI job was skipped) fails on 569ff84ea: `libSceAgcDriver.prx: ...CachedPipeline... registers a thread_local destructor`. It passes on main. - Under gdb, which turns on the Windows debug heap, each run stops with `Critical error detected c0000374` in libSceAgcDriver.prx's `run_dtor_list` <- `tls_callback` as a thread exits: - `agc_driver_pipeline_journal_tests`: 10 of 10 (a replay thread) - `agc_driver_draw_cache_reuse_tests` with `APS5_NO_PIPELINE_JOURNAL=1`: 10 of 10 (thread `queue worker 0x0`); main: 0 of 10. So the journal is not required: any thread that ran `CachedPipeline` hits it when it exits. - Local experiment: `auto& key = HostThreadLocal<std::vector<std::byte>, PipelineKeyStorage>();`, the #4029 pattern. Both tests: 0 of 10 under gdb, and the check passes. - Without a debugger, `ctest --repeat until-fail:10` passes 10 of 10 on the head and with the experiment for `agc_pipeline_journal`, `agc_driver_pipeline_journal`, `agc_pipeline_cache` and `agc_pipeline_library{,_off,_fast_only}`. Not tested: a title, Linux, AMD. AI-assisted: yes
simonbronk commented 2026-10-15 09:01:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-15T09:01:45Z.


A title measurement of the hitch this PR targets, taken without the PR. I can't run the PR itself on this title yet: our working branch for it sits before a black-screen regression on main (#5983), and the PR doesn't cherry-pick onto it cleanly. I'll post the with/without numbers once one base runs both.

Onimusha: Way of the Sword (PPSA27836), Windows 11, RTX 5070 (NVIDIA 617.42), warm shader cache (0 misses), APS5_TRACE_SECONDS=5:40 across the first settings screens (language, brightness, gamma), commit 317b85f04:

  • Frame times: 270 presents. Frame ms p50 17.1, p90 359.0, p99 1209.8, max 3312.9. GPU busy 8.2 ms per present.

  • Per frame, top phases: Driver.Packet 269.0 ms, Driver.Packet.memory_wait 131.9, Shader.PrepareArtifact 124.2, Driver.Packet.dispatch 81.8, Vulkan.Dispatch.shader_resources 65.9.

  • The slowest frames are the screen changes. Each one is dominated by pipeline creation on a warm cache:

    • 3313 ms: Shader.PrepareArtifact 20.2 s summed over the prepare threads, Vulkan.GraphicsPipelinePrebuild 1.3 s, Vulkan.GraphicsPipeline 1.3 s, Vulkan.GraphicsPipelineLibrary 1.3 s.
    • 1210 ms: Vulkan.GraphicsPipelinePrebuild 722 ms, Vulkan.GraphicsPipeline 714 ms, Vulkan.GraphicsPipelineLibrary 543 ms.

    The other slow frames (1.0 to 1.5 s) mix Shader.PrepareArtifact (0.5 to 1.1 s) with Driver.Packet.memory_wait on one queue worker (0.4 to 1.0 s).

So on this title the warm-run hitch the description names ("the remaining first-use hitch") is real and large. It's worth up to seconds per screen change. Trace and summary line available on request.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6188432345 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5875#issuecomment-6188432345). Originally posted by [simonbronk](https://github.com/simonbronk) on 2026-10-15T09:01:45Z. --- A title measurement of the hitch this PR targets, taken without the PR. I can't run the PR itself on this title yet: our working branch for it sits before a black-screen regression on `main` (#5983), and the PR doesn't cherry-pick onto it cleanly. I'll post the with/without numbers once one base runs both. Onimusha: Way of the Sword (PPSA27836), Windows 11, RTX 5070 (NVIDIA 617.42), warm shader cache (0 misses), `APS5_TRACE_SECONDS=5:40` across the first settings screens (language, brightness, gamma), commit `317b85f04`: - **Frame times:** 270 presents. Frame ms p50 17.1, p90 359.0, p99 1209.8, max 3312.9. GPU busy 8.2 ms per present. - **Per frame, top phases:** `Driver.Packet` 269.0 ms, `Driver.Packet.memory_wait` 131.9, `Shader.PrepareArtifact` 124.2, `Driver.Packet.dispatch` 81.8, `Vulkan.Dispatch.shader_resources` 65.9. - **The slowest frames are the screen changes.** Each one is dominated by pipeline creation on a warm cache: - 3313 ms: `Shader.PrepareArtifact` 20.2 s summed over the prepare threads, `Vulkan.GraphicsPipelinePrebuild` 1.3 s, `Vulkan.GraphicsPipeline` 1.3 s, `Vulkan.GraphicsPipelineLibrary` 1.3 s. - 1210 ms: `Vulkan.GraphicsPipelinePrebuild` 722 ms, `Vulkan.GraphicsPipeline` 714 ms, `Vulkan.GraphicsPipelineLibrary` 543 ms. The other slow frames (1.0 to 1.5 s) mix `Shader.PrepareArtifact` (0.5 to 1.1 s) with `Driver.Packet.memory_wait` on one queue worker (0.4 to 1.0 s). So on this title the warm-run hitch the description names ("the remaining first-use hitch") is real and large. It's worth up to seconds per screen change. Trace and summary line available on request.
github-actions[bot] commented 2026-10-15 12:10:54 +00:00 (Migrated from github.com)

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


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 5441 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp L3629-3632
PR 5480 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp L318
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp L3-4, L7, L713
core/shader/recompiler/ShaderDiskCache.cpp L89
PR 6077 core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp L6-7, L713
PR 6259 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp L4447-4500
PR 6262 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp L4447-4500
PR 6320 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp L7266
PR 6379 core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp L7
PR 6436 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp L4447-4500
PR 6481 docs/dev/debt/libSceAgcDriver.md L66
PR 6503 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp L8-9, L1930
PR 6539 core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp L3-4, L7, L713
core/shader/recompiler/ShaderDiskCache.cpp L89

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 1341 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/CMakeLists.txt
PR 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1896 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.hpp
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
PR 4448 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
docs/dev/debt/libSceAgcDriver.md
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4650 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/Recompiler.hpp
docs/dev/debt/libSceAgcDriver.md
PR 4891 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/user/USAGE.md
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5426 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5431 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5499 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 5500 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 5656 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 5761 docs/dev/debt/libSceAgcDriver.md
PR 5835 docs/user/USAGE.md
PR 5867 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/CMakeLists.txt
PR 5962 docs/user/USAGE.md
PR 6038 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ARCHITECTURE.md
PR 6054 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6160 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Lifecycle.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6177 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.hpp
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Lifecycle.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Recompiler.hpp
PR 6208 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6215 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6222 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Lifecycle.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Recompiler.hpp
docs/dev/debt/libSceAgcDriver.md
PR 6235 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/Recompiler.hpp
PR 6252 docs/dev/debt/libSceAgcDriver.md
PR 6292 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 6312 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6412 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
docs/dev/ARCHITECTURE.md
docs/dev/debt/libSceAgcDriver.md
PR 6486 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/shader/recompiler/Recompiler.hpp
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
PR 6529 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6615 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp
PR 6631 core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ARCHITECTURE.md
PR 6632 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ARCHITECTURE.md
PR 6641 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Lifecycle.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/PipelineLibrary.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/PipelineLibrary.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.hpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191726794 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5875#issuecomment-6191726794). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T12:10:54Z. --- <!-- 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 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` [L3629-3632](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp#L3629-L3632) | | | | [PR 5480](https://www.github.com/boykopovar/AnyPS5/pull/5480) | `core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp` [L318](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp#L318) | | | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp` [L3-4](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp#L3-L4), [L7](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp#L7), [L713](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp#L713)<br>`core/shader/recompiler/ShaderDiskCache.cpp` [L89](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/shader/recompiler/ShaderDiskCache.cpp#L89) | | | | [PR 6077](https://www.github.com/boykopovar/AnyPS5/pull/6077) | `core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp` [L6-7](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp#L6-L7), [L713](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp#L713) | | | | [PR 6259](https://www.github.com/boykopovar/AnyPS5/pull/6259) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` [L4447-4500](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L4447-L4500) | | | | [PR 6262](https://www.github.com/boykopovar/AnyPS5/pull/6262) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` [L4447-4500](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L4447-L4500) | | | | [PR 6320](https://www.github.com/boykopovar/AnyPS5/pull/6320) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` [L7266](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp#L7266) | | | | [PR 6379](https://www.github.com/boykopovar/AnyPS5/pull/6379) | `core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp` [L7](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp#L7) | | | | [PR 6436](https://www.github.com/boykopovar/AnyPS5/pull/6436) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` [L4447-4500](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L4447-L4500) | | | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `docs/dev/debt/libSceAgcDriver.md` [L66](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/docs/dev/debt/libSceAgcDriver.md#L66) | | | | [PR 6503](https://www.github.com/boykopovar/AnyPS5/pull/6503) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` [L8-9](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L8-L9), [L1930](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp#L1930) | | | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp` [L3-4](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp#L3-L4), [L7](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp#L7), [L713](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp#L713)<br>`core/shader/recompiler/ShaderDiskCache.cpp` [L89](https://github.com/boykopovar/AnyPS5/blob/3f171d03e0695a1dce21582aff1d02a402b41f25/core/shader/recompiler/ShaderDiskCache.cpp#L89) | | | 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 1341](https://www.github.com/boykopovar/AnyPS5/pull/1341) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/CMakeLists.txt` | | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 1896](https://www.github.com/boykopovar/AnyPS5/pull/1896) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/shader/recompiler/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 4472](https://www.github.com/boykopovar/AnyPS5/pull/4472) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4650](https://www.github.com/boykopovar/AnyPS5/pull/4650) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 4891](https://www.github.com/boykopovar/AnyPS5/pull/4891) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/user/USAGE.md` | | [PR 5058](https://www.github.com/boykopovar/AnyPS5/pull/5058) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5426](https://www.github.com/boykopovar/AnyPS5/pull/5426) | `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/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5500](https://www.github.com/boykopovar/AnyPS5/pull/5500) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 5656](https://www.github.com/boykopovar/AnyPS5/pull/5656) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp`<br>`core/shader/recompiler/ShaderDiskCache.hpp` | | [PR 5761](https://www.github.com/boykopovar/AnyPS5/pull/5761) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5835](https://www.github.com/boykopovar/AnyPS5/pull/5835) | `docs/user/USAGE.md` | | [PR 5867](https://www.github.com/boykopovar/AnyPS5/pull/5867) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/CMakeLists.txt` | | [PR 5962](https://www.github.com/boykopovar/AnyPS5/pull/5962) | `docs/user/USAGE.md` | | [PR 6038](https://www.github.com/boykopovar/AnyPS5/pull/6038) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/ARCHITECTURE.md` | | [PR 6054](https://www.github.com/boykopovar/AnyPS5/pull/6054) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6160](https://www.github.com/boykopovar/AnyPS5/pull/6160) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Lifecycle.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Lifecycle.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6208](https://www.github.com/boykopovar/AnyPS5/pull/6208) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6215](https://www.github.com/boykopovar/AnyPS5/pull/6215) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6222](https://www.github.com/boykopovar/AnyPS5/pull/6222) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Lifecycle.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/Pipeline.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/shader/recompiler/Recompiler.hpp` | | [PR 6252](https://www.github.com/boykopovar/AnyPS5/pull/6252) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp` | | [PR 6312](https://www.github.com/boykopovar/AnyPS5/pull/6312) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp`<br>`core/shader/recompiler/ShaderDiskCache.hpp`<br>`docs/dev/ARCHITECTURE.md`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6486](https://www.github.com/boykopovar/AnyPS5/pull/6486) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`core/shader/recompiler/Recompiler.hpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp`<br>`core/shader/recompiler/ShaderDiskCache.hpp` | | [PR 6529](https://www.github.com/boykopovar/AnyPS5/pull/6529) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Pipeline.cpp` | | [PR 6631](https://www.github.com/boykopovar/AnyPS5/pull/6631) | `core/libs/prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/dev/ARCHITECTURE.md` | | [PR 6632](https://www.github.com/boykopovar/AnyPS5/pull/6632) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/ARCHITECTURE.md` | | [PR 6641](https://www.github.com/boykopovar/AnyPS5/pull/6641) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Lifecycle.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/PipelineLibrary.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/PipelineLibrary.cpp`<br>`core/shader/recompiler/CMakeLists.txt`<br>`core/shader/recompiler/ShaderDiskCache.cpp`<br>`core/shader/recompiler/ShaderDiskCache.hpp` |
adriadam10 commented 2026-10-15 14:32:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T14:32:38Z.


Rebased onto main 940eba9a2 and fixed what the Windows runs found:

  • Conflict with #5989 (compute pipelines created before the GPU lock): VulkanDevice::computePipeline keeps #5989's in-flight futures, now keyed on ComputePipelineKey (module identity + push constants) instead of the variant id; its body is createComputePipeline, shared with the journal replay and recording the pipeline in the journal. ReplayComputePipeline skips a key that a preparation is already building. Since programs that recompile to the same module now share one pipeline, agc_driver_compute_pipeline_outside_gpu_mutex's "new" program (the old one behind an s_nop) reused the first pipeline and the test timed out. Its new program now also stores to the second word, so it gets its own module. The APS5_VERIFY_SET_LAYOUTS check and PreparedDispatch::objects from main are kept.
  • CachedPipeline's thread_local std::vector<std::byte> key is now HostThreadLocal<..., PipelineKeyStorage>() (the #4029 pattern). This fixes the 0xC0000374 on thread exit that @orishamir and @fdfawef324 reported, and prx_thread_local_destructors. Thanks to both of you for the gdb stacks and the experiment.
  • FileLock: as @fma-rc pointed out, a failed open/flock (CreateFileW/LockFileEx) used to append without taking turns. The journal now records nothing while it cannot lock pipelines.journal.lock, and reports it once. USAGE.md says so.
  • Main added pipeline state since the PR was written (the replayed stencil reference, the reversed blend, the quad sample masks, tessellation instancePatches/drawParameters). The recipe now carries them and CanonicalPipelineState copies them, FileFormat is 2, and the layout guards match the new sizes. pipeline_journal round-trips a masked 4-sample state and checks that it keys the same pipeline again.
  • ShaderDiskCache.cpp size guards set to main's layouts (232/200/440); the docs and the test dispatch (--unused-stencil-reference / --pipeline-journal) keep both sides.

Linux build and ctest of libSceAgc + libSceAgcDriver on the rebased head: build OK, 630 of 633 tests green. The 3 that fail are unrelated: agc_driver_tessellation also segfaults on main with this RADV, and store_over_untracked / preparation_scope_settle are flaky (they pass on rerun). The full Build (Windows included) runs before the merge.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6194588666 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5875#issuecomment-6194588666). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-15T14:32:38Z. --- Rebased onto main 940eba9a2 and fixed what the Windows runs found: - Conflict with #5989 (compute pipelines created before the GPU lock): `VulkanDevice::computePipeline` keeps #5989's in-flight futures, now keyed on `ComputePipelineKey` (module identity + push constants) instead of the variant id; its body is `createComputePipeline`, shared with the journal replay and recording the pipeline in the journal. `ReplayComputePipeline` skips a key that a preparation is already building. Since programs that recompile to the same module now share one pipeline, `agc_driver_compute_pipeline_outside_gpu_mutex`'s "new" program (the old one behind an `s_nop`) reused the first pipeline and the test timed out. Its new program now also stores to the second word, so it gets its own module. The `APS5_VERIFY_SET_LAYOUTS` check and `PreparedDispatch::objects` from main are kept. - `CachedPipeline`'s `thread_local std::vector<std::byte> key` is now `HostThreadLocal<..., PipelineKeyStorage>()` (the #4029 pattern). This fixes the 0xC0000374 on thread exit that @orishamir and @fdfawef324 reported, and `prx_thread_local_destructors`. Thanks to both of you for the gdb stacks and the experiment. - `FileLock`: as @fma-rc pointed out, a failed `open`/`flock` (`CreateFileW`/`LockFileEx`) used to append without taking turns. The journal now records nothing while it cannot lock `pipelines.journal.lock`, and reports it once. USAGE.md says so. - Main added pipeline state since the PR was written (the replayed stencil reference, the reversed blend, the quad sample masks, tessellation `instancePatches`/`drawParameters`). The recipe now carries them and `CanonicalPipelineState` copies them, `FileFormat` is 2, and the layout guards match the new sizes. `pipeline_journal` round-trips a masked 4-sample state and checks that it keys the same pipeline again. - `ShaderDiskCache.cpp` size guards set to main's layouts (232/200/440); the docs and the test dispatch (`--unused-stencil-reference` / `--pipeline-journal`) keep both sides. Linux build and ctest of libSceAgc + libSceAgcDriver on the rebased head: build OK, 630 of 633 tests green. The 3 that fail are unrelated: `agc_driver_tessellation` also segfaults on main with this RADV, and `store_over_untracked` / `preparation_scope_settle` are flaky (they pass on rerun). The full Build (Windows included) runs before the merge.
adriadam10 commented 2026-10-16 09:31:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T09:31:54Z.


The full Build's Windows job failed 11 tests that main passes (guest_shader_link, agc_shader_helpers, guest_video_out_*, video_out_*), all with C++ exception St12system_error ... libSceAgcDriver.prx has no unwind data right after a test finished.

  • Driver::Shutdown called FlushPipelineJournal(), which instantiated the Journal singleton and started its writer thread while the process was exiting, even on a run that recorded nothing. FlushPipelineJournal now only flushes a journal that already exists. Pushed as cb73747b2 (rebased on main 5d9dcc42d).

Linux build and ctest of libSceAgc + libSceAgcDriver: green except agc_driver_tessellation, which also segfaults on main with this RADV; the lavapipe rerun passed 608/608. The Windows job has to confirm the fix; the full Build runs again before the merge.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6212521318 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5875#issuecomment-6212521318). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T09:31:54Z. --- The full Build's Windows job failed 11 tests that `main` passes (`guest_shader_link`, `agc_shader_helpers`, `guest_video_out_*`, `video_out_*`), all with `C++ exception St12system_error ... libSceAgcDriver.prx has no unwind data` right after a test finished. - `Driver::Shutdown` called `FlushPipelineJournal()`, which instantiated the `Journal` singleton and started its writer thread while the process was exiting, even on a run that recorded nothing. `FlushPipelineJournal` now only flushes a journal that already exists. Pushed as cb73747b2 (rebased on main 5d9dcc42d). Linux build and ctest of libSceAgc + libSceAgcDriver: green except `agc_driver_tessellation`, which also segfaults on main with this RADV; the lavapipe rerun passed 608/608. The Windows job has to confirm the fix; the full Build runs again before the merge.
adriadam10 commented 2026-10-16 09:57:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T09:57:48Z.


Rebased onto main 332b0b1b7 (after #6371 and #6372). The only conflict was the include list of Driver/Lifecycle.cpp; both AsyncLog.hpp and PipelineJournal.hpp are kept, nothing else changed.

Linux build and ctest of libSceAgc + libSceAgcDriver (639 tests): green except agc_driver_tessellation, which also segfaults on main with this RADV. The full Build (Windows included) runs before the merge and has to confirm the FlushPipelineJournal shutdown fix.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6212967550 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5875#issuecomment-6212967550). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T09:57:48Z. --- Rebased onto main 332b0b1b7 (after #6371 and #6372). The only conflict was the include list of `Driver/Lifecycle.cpp`; both `AsyncLog.hpp` and `PipelineJournal.hpp` are kept, nothing else changed. Linux build and ctest of libSceAgc + libSceAgcDriver (639 tests): green except `agc_driver_tessellation`, which also segfaults on main with this RADV. The full Build (Windows included) runs before the merge and has to confirm the `FlushPipelineJournal` shutdown fix.
adriadam10 commented 2026-10-16 11:01:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T11:01:17Z.


Rebased onto main 72c5eed1f. The only conflict was the RecompileResult size guard in ShaderDiskCache.cpp (main's layout is 496 bytes, this PR's change to it brings it to 464); nothing else changed.

Linux build and ctest of libSceAgc + libSceAgcDriver (649 tests): green except agc_driver_tessellation, which also segfaults on main with this RADV. The full Build (Windows included) runs before the merge and has to confirm the FlushPipelineJournal shutdown fix.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6214052743 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5875#issuecomment-6214052743). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-16T11:01:17Z. --- Rebased onto main 72c5eed1f. The only conflict was the `RecompileResult` size guard in `ShaderDiskCache.cpp` (main's layout is 496 bytes, this PR's change to it brings it to 464); nothing else changed. Linux build and ctest of libSceAgc + libSceAgcDriver (649 tests): green except `agc_driver_tessellation`, which also segfaults on main with this RADV. The full Build (Windows included) runs before the merge and has to confirm the `FlushPipelineJournal` shutdown fix.
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!5875
No description provided.