Skip to content

fix(agc): drop pending storage-image results when the guest unmaps their memory - #8932

Closed
BunnyFl wants to merge 1 commit into
boykopovar:mainfrom
BunnyFl:fix/agc-drop-pending-results-on-unmap
Closed

BunnyFl wants to merge 1 commit into
boykopovar:mainfrom
BunnyFl:fix/agc-drop-pending-results-on-unmap

Conversation

@BunnyFl

@BunnyFl BunnyFl commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What

Pending storage-image results are stored when something reads their memory, or by the queue 0 worker once every queue has been idle for 50 ms. An unmap left them pending: since e3ce9ba the idle store waits for the unmap's mutation and drops the results only when it then finds the range unregistered. A title that maps new memory over the same addresses before the idle store runs gets the stale results written into its new data.

Heavenly Bodies (PPSA04246, Unity) does this at its first mission load. With APS5_TRACE_MEMORY=1 APS5_TRACE_FLUSH=1, run trace-7 on main:

1423: [memory] reserve 0000000272180000+0x100000 flags=0x0 align=0x40000
1425: [memory] remap fixed 0000000272180000+0xd4000 prot=0xf2 phys=0x6f480000
1799: [memory] remap fixed 0000000272180000+0xd4000 prot=0x0 phys=0xffffffffffffffff
1801: [memory] unmap 0000000272180000+0x100000
10201: [memory] reserve 0000000271a40000+0x1000000 flags=0x0 align=0x40000
10203: [memory] remap fixed 0000000271a40000+0x1000000 prot=0xf2 phys=0x6ee10000
10297: [flush] image 0x272190000+0xc0000 for idle 0x0+0xffffffffffffffff
FATAL: unhandled exception 0xc0000005 on thread 28132 'Loading.PreloadManager'
  rax 000000027219a9e0 ... rdi 000000027219a970 ... r13 000000027219a960

The 16 MiB block mapped at line 10203 is Unity's heap; the idle store at line 10297 writes the image of the unmapped range over it, and the allocator reads the overwritten words (0x27219a960 lies in that image). The other crashes are access violations on other threads (AssetGarbageCollectorHelper, UnityGfxDeviceWorker, Gfx Task Executor, unnamed ones) after the same kind of idle store.

This PR:

  • The unmap observer (retireUnmapped, also called for allocation removals) drops the results pending in images lying wholly inside the removed range through StorageTexture::DiscardPendingInside, the path a fill over a whole image already takes. For block-unit images it drops the pending units inside the range.
  • The observer is installed once a storage image exists (StorageTexture::AnyCreated), next to the multisample and depth guards that already share it.
  • IdleStoreOverUnmap maps the surface again at the same address inside the unmap's mutation and checks that the idle store and FlushAllPending do not write the old results into it. Its previous check that the results are still pending while the mutation is held no longer applies, as they are dropped at the unmap; when the address cannot be mapped again it keeps the previous settle check.
  • The agc-driver: write-back drops GPU results of full 64 KiB blocks of 1920x1080 render targets (PPSA12544 backgrounds garbled) #1970 debt entry notes that an unmap drops only the results pending wholly inside its range.

Lock order: the observer runs under the registry mutation and takes Pending().mutex, which is a leaf (no path takes the registry lock while holding it; see blocksKept). A store that holds a lease finishes before RequireUnpinned lets the unmap proceed.

Still not covered (debt entry): an image only partly inside an unmapped range, and memory reused without an unmap.

Overlap (tools/pr_overlap.py): #7600 also extends retireUnmapped and the observer condition in MultisampleTarget.cpp for its multisampled clear records; whichever merges second keeps both calls and both conditions. #6926 and #8707 edit the same #1970 debt entry for other cases (host writes over pending results, DCC images with several mips); only the text needs merging.

Tested

Windows 11 Pro 10.0.26200, AMD Radeon RX 9070 XT (AMD proprietary driver 26.10.1, LLPC), WinLibs GCC 15.2.0 r7.

Heavenly Bodies (PPSA04246, 01.006.004), converted from the dump on main 53a0a27, with this PR rebased onto that commit for the second row. 45 s runs from start into the first mission (cross pressed every 2 s through APS5_PAD_INPUT_FILE), APS5_PROFILE_DRAW=1 APS5_LOG_TIMESTAMPS=1 APS5_TRACE_FLUSH=1 APS5_TRACE_MEMORY=1, after one warm-up run:

runs crashed idle stores into a range unmapped earlier in the run presents per 10 s in the mission
main 53a0a27 10 5 17-79 in eight runs, 0 in the two whose idle store ran once 321-394 (the five that survived)
this PR 10 0 0 360-365

Every crashed run had 61 or more such stores. The crashes are access violations on Loading.PreloadManager, Gfx Task Executor and unnamed threads, and once unsupported PM4 packet type: header 0x00000000 in an overwritten command buffer. With this PR the idle store still runs (37-42 stores per run instead of 88-145); only the stores into unmapped ranges are gone. Earlier, on main 7ab4b2e with the same settings, main crashed in 6 of 15 runs and this PR in 0 of 15; without APS5_TRACE_FLUSH/APS5_TRACE_MEMORY, main crashed in 2 of 15. One of three played runs on 7ab4b2e also crashed there (AssetGarbageCollectorHelper).

GPU tests on main 0aa55ef and on this PR rebased onto it, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R "idle_store|multisample_retirement|native_multisample_depth|cached_image_multisample|host_import|guest_memory_lifetime|flip_stores|pipelined_fill|pattern_buffer_fill|fill_cover|depth_storage_reuse|memory_value_fill|pending_exact|clamped_global_fill|constant_dword_fill" -V:

  • main with this PR's IdleStoreOverUnmap.cpp: 30 of 31 passed, agc_driver_idle_store_over_unmap failed with idle store over unmap: results of the unmapped surface were stored into the memory mapped over it.
  • This PR: 31 of 31 passed.
  • Both: agc_host_import_sparse skipped (udmabuf imports are Linux only); the validation layer loaded (no was not found but was requested by env var VK_INSTANCE_LAYERS) and neither log has a VUID- error.

Rebased onto main 3e91c8e after #7600 merged. #7600 also extends retireUnmapped and the unmap observer condition in MultisampleTarget.cpp; the rebase keeps both calls (forgetSingleClears and DiscardPendingInside) and both conditions (anySingleClears() and StorageTexture::AnyCreated()), and changes nothing else. The GPU tests above were run again there, with agc_driver_graphics and agc_driver_msaa_dcc_clear_2/4/8 (where #7600's tests are) added: main with this PR's test 34 of 35 passed (agc_driver_idle_store_over_unmap failed with the same message), this PR 35 of 35, agc_host_import_sparse skipped, the validation layer loaded and no VUID- error. tools/check_conventions.py --base upstream/main passes.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: PPSA04246 Heavenly Bodies (PPSA04246) #8931
  • GPUs tested: AMD Radeon RX 9070 XT, AMD proprietary driver 26.10.1 (LLPC), Windows 11 Pro 10.0.26200
  • AI-assisted: yes

The investigation, the change and this description were prepared with AI assistance (Claude Code); the in-game observations were made by me.

🤖 Generated with Claude Code

@github-actions github-actions Bot added the unblocks title Names a title ID on the Unblocks line label Oct 21, 2026
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

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 6926 docs/dev/debt/libSceAgcDriver.md L112
PR 8707 docs/dev/debt/libSceAgcDriver.md L111-112
PR 10049 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp L704-706

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1368 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 2434 docs/dev/debt/libSceAgcDriver.md
PR 4448 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 4449 docs/dev/debt/libSceAgcDriver.md
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 5925 docs/dev/debt/libSceAgcDriver.md
PR 6146 docs/dev/debt/libSceAgcDriver.md
PR 6186 docs/dev/debt/libSceAgcDriver.md
PR 6187 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6192 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6202 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6209 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6481 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6539 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6741 docs/dev/debt/libSceAgcDriver.md
PR 6808 core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6868 docs/dev/debt/libSceAgcDriver.md
PR 6960 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6971 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7048 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7449 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
docs/dev/debt/libSceAgcDriver.md
PR 7604 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 8014 docs/dev/debt/libSceAgcDriver.md
PR 8246 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 8365 docs/dev/debt/libSceAgcDriver.md
PR 8395 docs/dev/debt/libSceAgcDriver.md
PR 8484 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 8527 docs/dev/debt/libSceAgcDriver.md
PR 8542 docs/dev/debt/libSceAgcDriver.md
PR 8592 docs/dev/debt/libSceAgcDriver.md
PR 8672 docs/dev/debt/libSceAgcDriver.md
PR 8998 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 8999 docs/dev/debt/libSceAgcDriver.md
PR 9387 docs/dev/debt/libSceAgcDriver.md
PR 9400 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9412 docs/dev/debt/libSceAgcDriver.md
PR 9431 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9432 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9508 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9521 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 9592 docs/dev/debt/libSceAgcDriver.md
PR 9672 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9673 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9674 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9675 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9676 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9685 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9748 docs/dev/debt/libSceAgcDriver.md
PR 9856 docs/dev/debt/libSceAgcDriver.md
PR 9879 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9891 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9892 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9893 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9895 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 9898 docs/dev/debt/libSceAgcDriver.md
PR 10026 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 21, 2026
@BunnyFl
BunnyFl force-pushed the fix/agc-drop-pending-results-on-unmap branch from 41751ea to bb1d46d Compare October 21, 2026 07:48
@github-actions github-actions Bot added docs agc libSceAgc* needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Oct 21, 2026
…eir memory

Pending storage-image results are stored when something reads their memory
or when the queue goes idle. An unmap left them pending, and the idle store
only dropped them if the range was still unregistered when it ran. A title
that maps new memory over the same addresses first (Unity's allocator does)
got the stale results written into its new data.

The unmap observer now drops the results pending in images inside the
unmapped range (DiscardPendingInside), and is installed once a storage
image exists.

Heavenly Bodies (PPSA04246) on Windows crashed in 6 of 15 traced runs with
heap corruption at its first mission load; with this change 0 of 15, and
the stale write-backs into earlier unmapped ranges went from 28-87 per run
to none.

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

simnJS commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

NVIDIA, Windows. GeForce RTX 4080 SUPER, driver 616.92 (32.0.16.1692), Windows 11 Pro 26200, Ryzen 9 7950X3D, WinLibs GCC 15.2.0 r7, Release.

This PR 4709383 merged into main cecb540 (clean merge), and the same tree with the three non-test files (Texture.hpp, MultisampleTarget.cpp, Texture.cpp) put back to main. ANYPS5_GPU=NVIDIA ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -R "^(agc_driver_idle_store_over_unmap|agc_driver_storage_read_during_idle_store|agc_driver_multisample_retirement|agc_driver_native_multisample_depth|agc_driver_msaa_dcc_clear_2|agc_driver_msaa_dcc_clear_4|agc_driver_msaa_dcc_clear_8|agc_driver_graphics)$" --timeout 120 --repeat until-fail:3 -V. Every Vulkan test logged Selected GPU name=NVIDIA GeForce RTX 4080 SUPER vendor=0x10de device=0x2702; none skipped.

test this PR main code with this PR's test
agc_driver_idle_store_over_unmap 3/3, 1.5-1.6 s 0/3, failed with idle store over unmap: results of the unmapped surface were stored into the memory mapped over it
agc_driver_storage_read_during_idle_store 3/3, 0.5-0.6 s 3/3
agc_driver_multisample_retirement 3/3, 0.3-0.4 s 3/3
agc_driver_native_multisample_depth 3/3, 0.5-0.7 s 3/3
agc_driver_msaa_dcc_clear_2/4/8 3/3 each, 0.5-0.6 s 3/3 each
agc_driver_graphics 3/3, 6.4-6.5 s 3/3, 7.0-7.5 s

With this PR the idle store test did not print skipped the remap check, so the remap check ran. On main code, --repeat until-fail stopped at the first failure; two more runs of that test alone failed the same way. agc_driver_graphics uses a mocked Vulkan device and does not run on the GPU.

Not run with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation: the Vulkan SDK (Khronos validation layer) is not installed on this machine.

AI-assisted: yes

@oneandonlydean oneandonlydean self-assigned this Oct 22, 2026
@BunnyFl

BunnyFl commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Closing this for now because of the open-PR limit in CONTRIBUTING (one open PR until an author's first merge). I'll reopen it once the limit allows. The branch stays as it is.

@BunnyFl BunnyFl closed this Oct 23, 2026
@santhoshkumar-dev

Copy link
Copy Markdown
Contributor

Additional Windows/AMD qualification of head 470938394fc7, locally integrated onto pinned main 5fb1747fa7a4.

Windows 11 10.0.26200, Ryzen 5 5600X, 16 GiB RAM, Radeon RX 6700 XT, AMD Vulkan driver 26.8.1, WinLibs GCC 15.2.0 r7, Release.

The same 14 focused fixture binaries were run against the unchanged baseline runtime and the integration. Vulkan was required, the application shader cache disabled, and VK_LAYER_KHRONOS_validation explicitly loaded. Both verbose logs confirm layer insertion, neither reports a missing layer, and both have zero VUID- IDs. The harness preserves clamped_global_fill's declared APS5_NO_LABEL_READBACK_STORE=1 setting.

Baseline With this fix
idle_store_over_unmap Fails: results of the unmapped surface were stored into the memory mapped over it Passes
Other 13 selected cases 13/13 pass 13/13 pass

The other cases cover idle-store yielding and concurrent reads, multisample retirement/guards, guest-memory lifetime, pipelined/pattern/constant/clamped fills, key coverage, depth-storage reuse and exact pending surfaces.

For Another Crab's Treasure (PPSA20423, 02.000.000; bring-up #8239), a separate eight-run title screen of the same source reached the beach seven times and had one near-null loading crash. This does not establish a crash-rate reduction or an FPS improvement. The generic unmap/remap corruption is reproduced and resolved by the fixture; the title's remaining loading failure has not been attributed to it.

Only this AMD GPU was tested locally. AI-assisted implementation integration and testing: yes, Codex, continuing the local ZCode investigation.

@JJenkx

JJenkx commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

@BunnyFl Independent Linux/RADV qualification of your existing change on pinned main b28bb772177768f99874ca38f6252cd0139acf2a.

Fetchable integration: JJenkx/AnyPS5:validation/pr8932-main-reviewed-20261102, head d0a03eca67b5cc2687e668b13f5f9ff79c0113c6. It preserves your original 470938394fc7 ancestry. The merge keeps main's recorderFor device check alongside your anyCreated flag, and retains main's newer debt entries while adding the unmap qualification. The tested production head is c2548885058e; the reviewed head differs only in concise debt wording. Conventions have zero findings; public_headers passes.

Ryzen 9 7950X, RX 6650 XT, RADV Mesa 26.2.6, Linux 7.2.11, GCC16.2.1 Release. Same five frozen fixture executables in both arms; raw-loader bindings verified; only libSceAgcDriver.prx differs. Vulkan required, app shader cache disabled, actual Khronos validation loaded. Original CTest per-test environment retained, including clamped fill's label-readback switch. Each whole arm used the host GPU FIFO.

Focused case main + your regression fixture main + your fix
idle_store_over_unmap fails: old results stored into newly mapped memory passes
idle_store_yields passes with test-only #14066 fixture passes with identical fixture
storage_read_during_idle_store passes passes
clamped_global_fill passes passes
dword_pattern_fill passes passes

Zero skips, no skipped remap check, zero VUIDs/missing layers; ten actual layer insertions per arm. Frozen libraries/executables remain unchanged. One matched five-case run per arm, not a broad stress claim.

The first pair with main's original idle-yield fixture segfaulted in that control on both runtimes. Those failures remain in the bundle. I then used actual #14066 7cbafff1b83c identically for that fixture only, preserving both runtime libraries; the corrected pair above removes that test race.

Exact pins/source diffs, fetchable-branch map, immutable identities/loader paths, all initial/final logs/JUnit and build receipts, SHA-256 d96a205e572b597be5add193b57b2aa070bed2803ae5e8edc8650c8a1f23c6a1.

No new Windows, title unblock or performance claim. KLONOA's allocation-code crash motivated this check, but its relationship to this lifetime bug is unproven; the title candidate is only prepared. I have left this PR's state unchanged. AI-assisted: yes (Codex).

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

Labels

agc libSceAgc* docs unblocks title Names a title ID on the Unblocks line

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants