fix(recompiler): check the encoder struct sizes only where they were measured #12250

Merged
B-Howell merged 7 commits from upstream-pr/12250 into main 2026-11-02 13:36:18 +00:00
B-Howell commented 2026-10-28 05:03:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-10-28T05:03:08Z.


What

On Linux with GCC 11/libstdc++ lacking __cpp_lib_atomic_shared_ptr, AtomicSharedPtr has a different in-memory representation from the std::atomic<std::shared_ptr> layout used for the existing RecompileResult size sentinel. The change gates only that RecompileResult == 552 assertion on the feature macro, inside the existing Linux/x86_64/libstdc++ block. All other 29 native-size sentinels and the explicit field-count and encode/decode checks remain active.

The cache fixture verifies that the process-local drawKeyMemo is excluded from serialized result bytes and is absent after decode. It also round-trips a non-default meshWindowBuffer and verifies that the corresponding request key changes. The wire format remains version 50 with 46 serialized ImageResource fields; the existing 96-byte native-size sentinel remains in place. No cache schema or format bump is made.

This update publishes candidate e450f9a69a94a64097353826562bc46a601a31ca (tree 8cff0750750eb9fb373bddf58d64a44f3e7e582f), an ordinary merge of public PR head c39227975df7b075570266202f9ff2dfac32bf49 followed by frozen main snapshot 0836dfdf4fecb1e0326100c490476e15d3a74da5. The selected PR changes remain limited to the cache test and ShaderDiskCache.cpp; the main delta overlaps neither path. The paired qualification below is CPU-only and does not claim Vulkan instance, validation-layer loading, or GPU behavior. The #11551 author agreed to the preferred #11551 → #12250 sequence and discussed reverse composition (comment); this change includes no #11551 commit and makes no combined-v51 claim. #12246 shares only the narrow RecompileResult guard; author coordination is #12250 first, followed by #12246 rebasing and dropping that duplicate line. This is sequencing, not a code prerequisite, so Depends on: none remains accurate.

Tested

Frozen main0836 / candidate e450 focused qualification - 2026-10-31

Windows 11, WinLibs GCC 15.2.0 r7, Release/Ninja, BUILD_TESTING=ON, cache b12250a. Frozen main 0836dfdf4fecb1e0326100c490476e15d3a74da5 and candidate e450f9a69a94a64097353826562bc46a601a31ca each built the existing agc_shader_disk_cache_tests target with two jobs and passed CTest agc_shader_disk_cache once (1/1; child durations 2.81s and 2.74s). Both runs used ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation. Their logs contain no VUID- or requested-layer-missing marker. The executable is CPU-only and creates no Vulkan instance; this pair does not prove positive layer loading or GPU behavior. The CTest source-version labels are f25d44b2596fec4f for main and 579d0de06cfff348 for the candidate; these are test output labels, not commit IDs. The control executable was not archived separately.

Raw build and CTest logs, numeric exits, the candidate executable hash, the final cache hash, and the object-transfer receipt are retained under the private qualification receipt. This is a focused Windows CPU pair only: no Linux result, GPU qualification, hosted-CI result, title/game result, or full-suite claim is made. The earlier de824/c392 results below retain their original pins.

Earlier frozen-main de824 qualification - 2026-10-31 (c392; historical)

Candidate c39227975df7b075570266202f9ff2dfac32bf49 (tree ebba59a7ec71ff21b56c6ef1baeb4f9fe19b19f3) is an ordinary merge of the previously prepared candidate bad0e6b2f515b7c3caa552a3f214ad02d400f996 followed by the frozen current-main snapshot de824c2919ca65086c6324a1e0388866a7327eea. Main had advanced 26 commits from c12e7e61; the relevant compiled-source refactor in ShaderInfoCollector.cpp changes generated SourceVersion, so the affected candidate target was rebuilt on each toolchain. The cache format remains 50, with 46 serialized ImageResource fields and the existing 96-byte native-size sentinel.

  • Windows, WinLibs GCC 15.2.0 r7, Release: the de824 control (be914c6613250040ffc8a75f84da47723248d4c8) and candidate c392 each configured and built agc_shader_disk_cache_tests and agc_driver_prepared_shaders_tests successfully. Each default cache-fixture run passed once. Each agc_driver_prepared_shaders_indirect CTest passed once on the RTX 4080 SUPER under the existing GPU lock and pinned Khronos validation environment. Logs show three Khronos instance and three device insertions per arm, no missing requested-layer diagnostic, no VUID-, no skip, and a released lock. The two -Wstringop-overread warnings are present in both build logs; they are not candidate-only. An unrelated extern warning also appears in both logs.
  • Ubuntu 22.04, GCC 11.4, Release: candidate c392 built agc_shader_disk_cache_tests and the default fixture passed once. Its tree is byte-identical to Linux overlay-control commit 11359a93130643f3f0194cd776101010ce9359ce; with the same compiler/build settings and 31 initialized submodule pins, this one execution serves both source roles, not two independent runs. The generated SourceVersion is 0xe3df2eaa97cb77be.
  • Total: five new executions for the de824 refresh: two Windows control, two Windows candidate, and one Linux shared-tree run. The earlier three codec modes and pack-ownership check remain pinned to the separate c12e/bad0 qualification below. No Linux GPU run, hosted-CI result, title/game result, or later-live-main qualification is claimed. The full inherited Linux process environment was not captured; relevant explicit mode variables and raw outputs are recorded.
  • The unmodified-main GCC 11 assertion failure remains supported only by the earlier same-translation-unit evidence; no unmodified de824 full-tree failure run or new size measurement is claimed. The Linux de824 run uses the reviewed single-assertion guard overlay, with other sentinels active.
  • A current exact-path review enumerated 1,558 open PRs and captured 90 selected file patches across 58 other PR heads. None duplicates the new drawKeyMemo omission or meshWindowBuffer equality/key-sensitivity fixture assertions. Thirteen patches mention meshWindowBuffer serialization already present in de824. The one shared production line is the narrow RecompileResult assertion guard in #12246; agreed coordination is #12250 first, then #12246 rebases and drops that duplicate guard. This is scoped duplicate-behavior evidence, not blanket overlap clearance.
  • The #11551 author agreed to the preferred #11551 → #12250 sequence and discussed reverse composition (comment). No #11551 source is included and no combined v51 qualification is claimed. Depends on: none remains the code-dependency declaration.

Earlier frozen-main v50 qualification — 2026-10-31 (c12e/bad0; historical)

Candidate bad0e6b2f515b7c3caa552a3f214ad02d400f996 (tree 23c9807f5bfe405e5940c831f6a036043c1d6599) is an ordinary two-parent merge: prior public PR head af8bc35724893cd0a084cafab2d068ce866c26ee, then frozen main c12e7e61a185261d837b6fb2ff1c92a07a00e5ff. This qualification is bound to that frozen main snapshot, not a later live main tip.

  • Windows, WinLibs GCC 15.2.0 r7, Release: the frozen-main control with the identical test-only fixture overlay (c0c6c1b852297cfd1388c23705c4a12cc87fd017) and the candidate each passed four CPU checks: default fixture mode, --artifact-codec, --resource-plan-codec, and agc_shader_disk_cache_pack_ownership. Each arm also passed one agc_driver_prepared_shaders_indirect CTest on the RTX 4080 SUPER under the existing GPU lock and pinned Khronos validation setup. Actual instance/device layer insertion was captured; no skip, missing requested-layer message, or VUID- was found. Total: 5/5 checks per arm.
  • Ubuntu 22.04, GCC 11.4, Release: candidate agc_shader_disk_cache_tests build passed. Default, artifact-codec, resource-plan-codec, and pack-ownership checks each passed once. The Linux guard-overlay control (56e21714287a3904d4e90bc97bc87f0062a9f304) has the identical tree as the candidate, so this was one Linux build and four executions serving both source roles, not two independent runs. Its 31 initialized submodule pins matched the recorded checkout baseline.
  • The unmodified frozen-main GCC 11 assertion failure is supported by the earlier same-translation-unit log: the relevant Recompiler.hpp and ShaderDiskCache.cpp blobs are identical at that recorded head and c12e7e61. The current Linux control applies only the reviewed fixture and single-assertion guard overlays. No new full-tree build of unmodified c12e7e61 or fresh 592-byte measurement is claimed.

There were 14 unique local executions across both Windows arms and the single Linux tree. No Linux GPU test, hosted-CI result, title/game result, or blanket overlap/readiness clearance is claimed. The Windows control configure transcript has no numeric exit capture and its standalone build stdout is absent; generated targets and the saved numeric build exit are successful. The full inherited Linux process environment was not snapshotted; exact argv/cwd and explicit mode environment changes are recorded. Historical results below remain tied to their original source pins.

Earlier pinned evidence (unchanged)

The sections below preserve their original source pins and scope. Statements about then-current heads, overlap, approvals, or proposed ordering are historical snapshots, not current status; the current #11551 order agreement is recorded above.

Current integration 881bfa72460361eb2ed747a2ae7ba932d37aea6b (tree 0fb4edb9c9423e0c07cdf6657526bd68306b5024), ordinary merge of frozen main fdd1753204a4732e1011539cc9d3bb69f70b27a6 into published f2210862935e033d3eed2c5b37f2fbc07e60a6f3:

  • Linux / WSL Ubuntu 22.04.1 / GCC 11.4.0 / Release: restoring only main's ShaderDiskCache.cpp makes its actual translation-unit build fail at line 90's sizeof(RecompileResult) == 552 assertion. Restored the exact candidate, built the real agc_shader_disk_cache_tests target with --parallel 2, then ctest --test-dir build -R '^agc_shader_disk_cache$' --repeat until-fail:3 -V passes all three runs (1.97 seconds). This directly exercises the affected compiler; no fresh 592-byte measurement or Linux GPU result is inferred.
  • Windows 11 / WinLibs GCC 15.2.0 r7 / Release: built agc_shader_disk_cache_tests and agc_driver_compute_pipeline_outside_gpu_mutex_tests on both frozen main and the candidate. Both use the identical memo fixture bytes (488f99a7d60d858e923f1bef4ef1de1122c9bb04cb8f8f2d7fd8201d04166f19); main's original fixture was restored byte-for-byte afterward and its checkout was verified clean.
  • On NVIDIA GeForce RTX 4080 SUPER, driver 32.0.16.1742, both arms pass two selected CTest cases three times each: ctest --test-dir build -R '^(agc_shader_disk_cache|agc_driver_compute_pipeline_outside_gpu_mutex)$' --repeat until-fail:3 -V, under the existing exclusive GPU lock, ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, the existing build-runtime/claude-vvl setup and loader diagnostics. Each arm proves six instance and six device insertions of the Khronos layer, no missing-requested-layer message and zero VUIDs. Both logs retain the same six ancillary AMD implicit-layer vkGetDeviceProcAddr diagnostics. The CPU cache case itself creates no Vulkan device; the companion case compiles and executes actual shaders on the selected NVIDIA GPU. This is fixture coverage, not a title result or runtime GPU fix.
  • The owned guard and seven fixture lines are unchanged. Exact used dependencies match the frozen source pins; accepted source/binary/library hashes and prior outputs are preserved. After restoring the candidate, both cases pass three more runs (9.56 seconds), again with six instance/device validation insertions and zero VUIDs. Conventions and independent source/result review pass.

A private #9508 cache/guard composition on frozen main d65bff2679 is now tested at c9dbc8d046 (tree 55b8b322a2601f0ac5f938eec1ac57581e8119f3): Windows/GCC15.2 control and composition each pass three cache runs; Linux/GCC11.4 control fails the actual unguarded 624-byte assertion and composition passes three runs. The identical fixture retains populated-memo omission and adds nondefault heap-field round trips. This is CPU cache/compiler coverage, not GPU/performance validation or a new measurement of the supported Linux ABI size table. Public branches are unchanged. At this historical snapshot, #9508 and #11551 sequencing were unconfirmed. Later, the author of #11551 agreed to the preferred #11551 → #12250 sequence and discussed reverse composition (comment #6519481893). That agreement does not import #11551 into this candidate or make the two tested source pairs equivalent. Other changed/new bot scopes remain pending. Historical approval and maskym's joint-tree report below retain their original pins and limits; no current-head approval or all-comments-complete/readiness claim is made.

Earlier integration and tester evidence follows:

Published integration f2210862935e033d3eed2c5b37f2fbc07e60a6f3 (tree ce9a76a231ea220019510f042af5fcb6616d16c0), based on frozen main 319621ba2e578bd053b0baba2877fe70520e0737:

  • Windows 11, WinLibs GCC15.2.0-r7, Release: agc_shader_disk_cache_tests built on both main and this integration with --parallel 2. Main used the identical seven-line memo fixture overlay, preserving all incoming main tests. The original main test source was restored byte-for-byte afterward.
  • On both arms, ctest -R '^agc_shader_disk_cache$' --repeat until-fail:3 -V passed all three executions with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and loader diagnostics. Both CPU logs contain no missing-requested-layer message and no VUID. This cache test does not exercise a Vulkan instance/device; no real-device validation or GPU-rendering result is claimed.
  • The fresh Windows pair exercises memo exclusion/decoding. Linux/GCC11 was not tested in this batch, and Windows does not exercise the Linux-only sizeof guard. The earlier GCC11/control evidence below remains historical. No new console, combined-#11551 or external tester configuration is claimed.
  • Conventions, independent integration source review and independent paired-result review passed. The source change remains two files, eight insertions and one deletion.

External tester provenance remains separate: maskym's report applies to old head 572692c05e, main 3b979d42a9, and the other PRs listed in that joint tree. Its NVIDIA comparison and shared baseline failure/validation messages are the tester's evidence, not a fresh isolated run of this integration; our acknowledgment retains that qualification.

Earlier published-head evidence follows:

  • Linux, WSL Ubuntu 22.04, GCC 11.4, Release, BUILD_TESTING=ON:
    • Without this change, libs stops at the assertion above.
    • With it, libs builds and agc_shader_disk_cache passes 3 of 3 runs.
  • Windows 11, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON: libs builds, and agc_shader_disk_cache passes 3 of 3 runs on main and on this change.
  • Not run in those earlier local checks: Linux with GCC 12 or later, where these checks still apply. Those configurations were not rerun in this batch.
  • agc_shader_disk_cache creates no Vulkan device, and neither machine had the validation layer installed during those historical runs, so no Vulkan validation run was made then. python tools/check_conventions.py --base origin/main passes.

Checklist

  • Based on current main; no other open PR implements the same functions
    • The candidate is an ordinary merge of the public PR head with frozen main snapshot 0836dfdf4fecb1e0326100c490476e15d3a74da5. The earlier exact-path comparison at de824 covered 1,558 open PR metadata entries and 90 selected file patches. The refreshed source-delta review for this candidate found zero overlapping paths between the PR delta and main0836; no newer global overlap census is implied. The narrow guard line shared with #12246 remains subject to the #12250-first/rebase-and-drop sequence.
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4080 SUPER; historical paired frozen-main/candidate agc_driver_prepared_shaders_indirect check at the previously published c392 source pin, with actual Khronos instance/device insertion. The new e450 qualification is CPU-only and creates no Vulkan instance; it adds no GPU or validation-layer-loading result. Driver and OS build were not captured in the historical run.
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5045484140 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12250). Originally posted by [B-Howell](https://github.com/B-Howell) on 2026-10-28T05:03:08Z. --- ### What On Linux with GCC 11/libstdc++ lacking `__cpp_lib_atomic_shared_ptr`, `AtomicSharedPtr` has a different in-memory representation from the `std::atomic<std::shared_ptr>` layout used for the existing `RecompileResult` size sentinel. The change gates only that `RecompileResult == 552` assertion on the feature macro, inside the existing Linux/x86_64/libstdc++ block. All other 29 native-size sentinels and the explicit field-count and encode/decode checks remain active. The cache fixture verifies that the process-local `drawKeyMemo` is excluded from serialized result bytes and is absent after decode. It also round-trips a non-default `meshWindowBuffer` and verifies that the corresponding request key changes. The wire format remains version 50 with 46 serialized `ImageResource` fields; the existing 96-byte native-size sentinel remains in place. No cache schema or format bump is made. This update publishes candidate `e450f9a69a94a64097353826562bc46a601a31ca` (tree `8cff0750750eb9fb373bddf58d64a44f3e7e582f`), an ordinary merge of public PR head `c39227975df7b075570266202f9ff2dfac32bf49` followed by frozen main snapshot `0836dfdf4fecb1e0326100c490476e15d3a74da5`. The selected PR changes remain limited to the cache test and `ShaderDiskCache.cpp`; the main delta overlaps neither path. The paired qualification below is CPU-only and does not claim Vulkan instance, validation-layer loading, or GPU behavior. The #11551 author agreed to the preferred #11551 → #12250 sequence and discussed reverse composition ([comment](https://github.com/boykopovar/AnyPS5/pull/12250#issuecomment-6519481893)); this change includes no #11551 commit and makes no combined-v51 claim. #12246 shares only the narrow `RecompileResult` guard; author coordination is #12250 first, followed by #12246 rebasing and dropping that duplicate line. This is sequencing, not a code prerequisite, so `Depends on: none` remains accurate. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> #### Frozen main0836 / candidate e450 focused qualification - 2026-10-31 Windows 11, WinLibs GCC 15.2.0 r7, Release/Ninja, `BUILD_TESTING=ON`, cache `b12250a`. Frozen main `0836dfdf4fecb1e0326100c490476e15d3a74da5` and candidate `e450f9a69a94a64097353826562bc46a601a31ca` each built the existing `agc_shader_disk_cache_tests` target with two jobs and passed CTest `agc_shader_disk_cache` once (1/1; child durations 2.81s and 2.74s). Both runs used `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`. Their logs contain no `VUID-` or requested-layer-missing marker. The executable is CPU-only and creates no Vulkan instance; this pair does not prove positive layer loading or GPU behavior. The CTest source-version labels are `f25d44b2596fec4f` for main and `579d0de06cfff348` for the candidate; these are test output labels, not commit IDs. The control executable was not archived separately. Raw build and CTest logs, numeric exits, the candidate executable hash, the final cache hash, and the object-transfer receipt are retained under the private qualification receipt. This is a focused Windows CPU pair only: no Linux result, GPU qualification, hosted-CI result, title/game result, or full-suite claim is made. The earlier de824/c392 results below retain their original pins. #### Earlier frozen-main de824 qualification - 2026-10-31 (c392; historical) Candidate `c39227975df7b075570266202f9ff2dfac32bf49` (tree `ebba59a7ec71ff21b56c6ef1baeb4f9fe19b19f3`) is an ordinary merge of the previously prepared candidate `bad0e6b2f515b7c3caa552a3f214ad02d400f996` followed by the frozen current-main snapshot `de824c2919ca65086c6324a1e0388866a7327eea`. Main had advanced 26 commits from `c12e7e61`; the relevant compiled-source refactor in `ShaderInfoCollector.cpp` changes generated `SourceVersion`, so the affected candidate target was rebuilt on each toolchain. The cache format remains 50, with 46 serialized `ImageResource` fields and the existing 96-byte native-size sentinel. - **Windows, WinLibs GCC 15.2.0 r7, Release:** the de824 control (`be914c6613250040ffc8a75f84da47723248d4c8`) and candidate c392 each configured and built `agc_shader_disk_cache_tests` and `agc_driver_prepared_shaders_tests` successfully. Each default cache-fixture run passed once. Each `agc_driver_prepared_shaders_indirect` CTest passed once on the RTX 4080 SUPER under the existing GPU lock and pinned Khronos validation environment. Logs show three Khronos instance and three device insertions per arm, no missing requested-layer diagnostic, no `VUID-`, no skip, and a released lock. The two `-Wstringop-overread` warnings are present in both build logs; they are not candidate-only. An unrelated extern warning also appears in both logs. - **Ubuntu 22.04, GCC 11.4, Release:** candidate c392 built `agc_shader_disk_cache_tests` and the default fixture passed once. Its tree is byte-identical to Linux overlay-control commit `11359a93130643f3f0194cd776101010ce9359ce`; with the same compiler/build settings and 31 initialized submodule pins, this one execution serves both source roles, not two independent runs. The generated `SourceVersion` is `0xe3df2eaa97cb77be`. - **Total:** five new executions for the de824 refresh: two Windows control, two Windows candidate, and one Linux shared-tree run. The earlier three codec modes and pack-ownership check remain pinned to the separate c12e/bad0 qualification below. No Linux GPU run, hosted-CI result, title/game result, or later-live-main qualification is claimed. The full inherited Linux process environment was not captured; relevant explicit mode variables and raw outputs are recorded. - The unmodified-main GCC 11 assertion failure remains supported only by the earlier same-translation-unit evidence; no unmodified de824 full-tree failure run or new size measurement is claimed. The Linux de824 run uses the reviewed single-assertion guard overlay, with other sentinels active. - A current exact-path review enumerated 1,558 open PRs and captured 90 selected file patches across 58 other PR heads. None duplicates the new `drawKeyMemo` omission or `meshWindowBuffer` equality/key-sensitivity fixture assertions. Thirteen patches mention `meshWindowBuffer` serialization already present in de824. The one shared production line is the narrow `RecompileResult` assertion guard in #12246; agreed coordination is #12250 first, then #12246 rebases and drops that duplicate guard. This is scoped duplicate-behavior evidence, not blanket overlap clearance. - The #11551 author agreed to the preferred #11551 → #12250 sequence and discussed reverse composition ([comment](https://github.com/boykopovar/AnyPS5/pull/12250#issuecomment-6519481893)). No #11551 source is included and no combined v51 qualification is claimed. `Depends on: none` remains the code-dependency declaration. #### Earlier frozen-main v50 qualification — 2026-10-31 (c12e/bad0; historical) Candidate `bad0e6b2f515b7c3caa552a3f214ad02d400f996` (tree `23c9807f5bfe405e5940c831f6a036043c1d6599`) is an ordinary two-parent merge: prior public PR head `af8bc35724893cd0a084cafab2d068ce866c26ee`, then frozen main `c12e7e61a185261d837b6fb2ff1c92a07a00e5ff`. This qualification is bound to that frozen main snapshot, not a later live `main` tip. - **Windows, WinLibs GCC 15.2.0 r7, Release:** the frozen-main control with the identical test-only fixture overlay (`c0c6c1b852297cfd1388c23705c4a12cc87fd017`) and the candidate each passed four CPU checks: default fixture mode, `--artifact-codec`, `--resource-plan-codec`, and `agc_shader_disk_cache_pack_ownership`. Each arm also passed one `agc_driver_prepared_shaders_indirect` CTest on the RTX 4080 SUPER under the existing GPU lock and pinned Khronos validation setup. Actual instance/device layer insertion was captured; no skip, missing requested-layer message, or `VUID-` was found. Total: **5/5 checks per arm**. - **Ubuntu 22.04, GCC 11.4, Release:** candidate `agc_shader_disk_cache_tests` build passed. Default, artifact-codec, resource-plan-codec, and pack-ownership checks each passed once. The Linux guard-overlay control (`56e21714287a3904d4e90bc97bc87f0062a9f304`) has the identical tree as the candidate, so this was one Linux build and four executions serving both source roles, not two independent runs. Its 31 initialized submodule pins matched the recorded checkout baseline. - The unmodified frozen-main GCC 11 assertion failure is supported by the earlier same-translation-unit log: the relevant `Recompiler.hpp` and `ShaderDiskCache.cpp` blobs are identical at that recorded head and `c12e7e61`. The current Linux control applies only the reviewed fixture and single-assertion guard overlays. No new full-tree build of unmodified `c12e7e61` or fresh `592`-byte measurement is claimed. There were **14 unique local executions** across both Windows arms and the single Linux tree. No Linux GPU test, hosted-CI result, title/game result, or blanket overlap/readiness clearance is claimed. The Windows control configure transcript has no numeric exit capture and its standalone build stdout is absent; generated targets and the saved numeric build exit are successful. The full inherited Linux process environment was not snapshotted; exact argv/cwd and explicit mode environment changes are recorded. Historical results below remain tied to their original source pins. #### Earlier pinned evidence (unchanged) The sections below preserve their original source pins and scope. Statements about then-current heads, overlap, approvals, or proposed ordering are historical snapshots, not current status; the current #11551 order agreement is recorded above. Current integration `881bfa72460361eb2ed747a2ae7ba932d37aea6b` (tree `0fb4edb9c9423e0c07cdf6657526bd68306b5024`), ordinary merge of frozen main `fdd1753204a4732e1011539cc9d3bb69f70b27a6` into published `f2210862935e033d3eed2c5b37f2fbc07e60a6f3`: - Linux / WSL Ubuntu 22.04.1 / GCC 11.4.0 / Release: restoring only main's `ShaderDiskCache.cpp` makes its actual translation-unit build fail at line 90's `sizeof(RecompileResult) == 552` assertion. Restored the exact candidate, built the real `agc_shader_disk_cache_tests` target with `--parallel 2`, then `ctest --test-dir build -R '^agc_shader_disk_cache$' --repeat until-fail:3 -V` passes all three runs (1.97 seconds). This directly exercises the affected compiler; no fresh 592-byte measurement or Linux GPU result is inferred. - Windows 11 / WinLibs GCC 15.2.0 r7 / Release: built `agc_shader_disk_cache_tests` and `agc_driver_compute_pipeline_outside_gpu_mutex_tests` on both frozen main and the candidate. Both use the identical memo fixture bytes (`488f99a7d60d858e923f1bef4ef1de1122c9bb04cb8f8f2d7fd8201d04166f19`); main's original fixture was restored byte-for-byte afterward and its checkout was verified clean. - On NVIDIA GeForce RTX 4080 SUPER, driver `32.0.16.1742`, both arms pass two selected CTest cases three times each: `ctest --test-dir build -R '^(agc_shader_disk_cache|agc_driver_compute_pipeline_outside_gpu_mutex)$' --repeat until-fail:3 -V`, under the existing exclusive GPU lock, `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, the existing `build-runtime/claude-vvl` setup and loader diagnostics. Each arm proves six instance and six device insertions of the Khronos layer, no missing-requested-layer message and zero VUIDs. Both logs retain the same six ancillary AMD implicit-layer `vkGetDeviceProcAddr` diagnostics. The CPU cache case itself creates no Vulkan device; the companion case compiles and executes actual shaders on the selected NVIDIA GPU. This is fixture coverage, not a title result or runtime GPU fix. - The owned guard and seven fixture lines are unchanged. Exact used dependencies match the frozen source pins; accepted source/binary/library hashes and prior outputs are preserved. After restoring the candidate, both cases pass three more runs (9.56 seconds), again with six instance/device validation insertions and zero VUIDs. Conventions and independent source/result review pass. A private #9508 cache/guard composition on frozen main `d65bff2679` is now tested at `c9dbc8d046` (tree `55b8b322a2601f0ac5f938eec1ac57581e8119f3`): Windows/GCC15.2 control and composition each pass three cache runs; Linux/GCC11.4 control fails the actual unguarded 624-byte assertion and composition passes three runs. The identical fixture retains populated-memo omission and adds nondefault heap-field round trips. This is CPU cache/compiler coverage, not GPU/performance validation or a new measurement of the supported Linux ABI size table. Public branches are unchanged. At this historical snapshot, #9508 and #11551 sequencing were unconfirmed. Later, the author of #11551 agreed to the preferred #11551 → #12250 sequence and discussed reverse composition (comment #6519481893). That agreement does not import #11551 into this candidate or make the two tested source pairs equivalent. Other changed/new bot scopes remain pending. Historical approval and maskym's joint-tree report below retain their original pins and limits; no current-head approval or all-comments-complete/readiness claim is made. Earlier integration and tester evidence follows: Published integration `f2210862935e033d3eed2c5b37f2fbc07e60a6f3` (tree `ce9a76a231ea220019510f042af5fcb6616d16c0`), based on frozen main `319621ba2e578bd053b0baba2877fe70520e0737`: - Windows 11, WinLibs GCC15.2.0-r7, Release: `agc_shader_disk_cache_tests` built on both main and this integration with `--parallel 2`. Main used the identical seven-line memo fixture overlay, preserving all incoming main tests. The original main test source was restored byte-for-byte afterward. - On both arms, `ctest -R '^agc_shader_disk_cache$' --repeat until-fail:3 -V` passed all three executions with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and loader diagnostics. Both CPU logs contain no missing-requested-layer message and no VUID. This cache test does not exercise a Vulkan instance/device; no real-device validation or GPU-rendering result is claimed. - The fresh Windows pair exercises memo exclusion/decoding. Linux/GCC11 was **not tested in this batch**, and Windows does not exercise the Linux-only sizeof guard. The earlier GCC11/control evidence below remains historical. No new console, combined-#11551 or external tester configuration is claimed. - Conventions, independent integration source review and independent paired-result review passed. The source change remains two files, eight insertions and one deletion. External tester provenance remains separate: [maskym's report](https://github.com/boykopovar/AnyPS5/pull/12250#issuecomment-6465325408) applies to old head `572692c05e`, main `3b979d42a9`, and the other PRs listed in that joint tree. Its NVIDIA comparison and shared baseline failure/validation messages are the tester's evidence, not a fresh isolated run of this integration; [our acknowledgment](https://github.com/boykopovar/AnyPS5/pull/12250#issuecomment-6474619745) retains that qualification. Earlier published-head evidence follows: - Linux, WSL Ubuntu 22.04, GCC 11.4, Release, `BUILD_TESTING=ON`: - Without this change, `libs` stops at the assertion above. - With it, `libs` builds and `agc_shader_disk_cache` passes 3 of 3 runs. - Windows 11, WinLibs GCC 15.2.0 r7, Release, `BUILD_TESTING=ON`: `libs` builds, and `agc_shader_disk_cache` passes 3 of 3 runs on `main` and on this change. - Not run in those earlier local checks: Linux with GCC 12 or later, where these checks still apply. Those configurations were not rerun in this batch. - `agc_shader_disk_cache` creates no Vulkan device, and neither machine had the validation layer installed during those historical runs, so no Vulkan validation run was made then. `python tools/check_conventions.py --base origin/main` passes. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - The candidate is an ordinary merge of the public PR head with frozen main snapshot `0836dfdf4fecb1e0326100c490476e15d3a74da5`. The earlier exact-path comparison at de824 covered 1,558 open PR metadata entries and 90 selected file patches. The refreshed source-delta review for this candidate found zero overlapping paths between the PR delta and main0836; no newer global overlap census is implied. The narrow guard line shared with #12246 remains subject to the #12250-first/rebase-and-drop sequence. - [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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 4080 SUPER; historical paired frozen-main/candidate `agc_driver_prepared_shaders_indirect` check at the previously published c392 source pin, with actual Khronos instance/device insertion. The new e450 qualification is CPU-only and creates no Vulkan instance; it adds no GPU or validation-layer-loading result. Driver and OS build were not captured in the historical run. - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-28 08:59:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T08:59:43Z.

Review: APPROVED


The compile-time size guard now runs only where its measured libstdc++ layout applies, and still enforces the same sizes for std::atomic<std::shared_ptr> builds. The added round-trip test verifies that a populated process-local draw-key memo is neither serialized nor restored. The reported GCC 11/Windows runs and all current hosted build/relinker checks pass. No blocking issue found.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5680086095 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12250#pullrequestreview-5680086095). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T08:59:43Z. **Review:** APPROVED --- The compile-time size guard now runs only where its measured libstdc++ layout applies, and still enforces the same sizes for `std::atomic<std::shared_ptr>` builds. The added round-trip test verifies that a populated process-local draw-key memo is neither serialized nor restored. The reported GCC 11/Windows runs and all current hosted build/relinker checks pass. No blocking issue found.
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!12250
No description provided.