AGC: storage image access to depth/stencil surface 0x201a800000 is not implemented #1409
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by RedIN3rds on 2026-10-08T02:46:05Z.
Game: Silent Hill: The Short Message
Title ID: PPSA10112
Update: 01.000.001
After re-linking and getting to game, no render is visible due to missing depth/stencil operations.
Skipping operation 0x201a800000 results in the game reaching gameplay, albeit without graphics still.
CrashLog_SHPC.txt
Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-08T03:15:46Z.
Just before the crash, the surface at
0x201a800000is looked up as a 3840x2160 storage image with an 8-bit format (line 294 of the log:format=5 vk=13, which is R8_UINT).DepthSurfaceAtalso matches a depth target's stencil address, so the compute shader at0x2007990000is most likely reading or writing the depth target's stencil plane through a storage descriptor.Ghost of Yōtei hits the same case (comment on #425). #425 adds storage access to the depth plane but keeps refusing the stencil plane on purpose; the stencil plane is planned there as a separate follow-up (reply), because Vulkan has no storage view of S8 or D32S8 and the stencil aspect needs its own seed and take-back through a buffer. So this issue needs that follow-up on top of #425, not #425 alone.
Imported from boykopovar/AnyPS5. Originally posted by RedIN3rds on 2026-10-08T03:22:27Z.
Thank you for the heads up!
Imported from boykopovar/AnyPS5. Originally posted by klosixgaming-arch on 2026-10-08T11:52:11Z.
This issue is related to the AGC driver's handling of depth/stencil surfaces. Based on my review of recent PRs related to the shader recompiler and AGC driver (including #1526 for BY2/BY4 image transfers and various depth surface fixes), I can provide some context:
The fact that skipping operation 0x201a800000 allows the game to reach gameplay suggests this is a specific storage image access pattern that isn't implemented yet. The address 0x201a800000 appears to be a depth/stencil surface that's being accessed as a storage image rather than through the normal depth sampling path.
Some observations based on similar issues I've seen:
I'd suggest investigating what type of operation 0x201a800000 represents and whether it's related to any recent changes in how depth/stencil surfaces are handled in the AGC driver.
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-10T12:17:14Z.
Another title: Sifu (PPSA03001 v01.007.000, Unreal Engine 4) stops on the same error, with the same pattern as the 8-bit access described above.
The surface at
0x20183b0000appears twice in the log: first as a storage texture of1920x1088(format=56 vk=37), then as a3840x2160storage image withformat=5 vk=13(R8_UINT) just before the failure. That is the 8-bit storage image over a depth target that the earlier comment on this issue points at as the stencil plane. I have not checked the shader itself.The log also has 8 shaders refused at registration (
could not be prepared after registration), which I did not look at separately.Windows 10 (19045), NVIDIA GeForce RTX 4080 SUPER, MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Libraries built on
mainatb5f5362dplus two unrelated stub exports and #1091. The executable and modules were relinked from ELF files rebuilt from the dump's decrypted fake-SELF containers (no original ELF available); the relinker accepts them (2162 imports, 0 absent). Dump from my own digital copy; no game files shared. AI-assisted.Imported from boykopovar/AnyPS5. Originally posted by AlxcBTW on 2026-10-10T16:48:21Z.
Another title: Taxi Chaos 2 (PPSA30279 v01.007.000, Unreal Engine) stops here at its first menu frame.
The shader is not really accessing depth. It binds a 2048x2048 storage image (guest format 36) on memory that a 512x512 depth surface (vk format 130) used earlier. That is reused memory, the same shape #1495 handles for sampled views and #454/#2519 address for storage views.
I tried a local change: a storage view whose size differs from the depth surface at its address takes the ordinary storage path, while a view with the surface's own size still aborts. With it the title gets past this stop, to the depth-cube case in #425.
Windows 11 26200, Radeon 880M (
ANYPS5_GPU=AMD), with #2054 applied; without #2054 the title stalls earlier while mapping direct memory. Dump from my own copy; no game files are shared.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-10T21:19:20Z.
Another title, and a third shape of this error: Astro Bot stops here after its title screen loads, on memory that alternates between a depth target and a colour image written by compute.
Title: Astro Bot, PPSA21564, 01.007
Host: Arch Linux (kernel 7.2.9), RTX 5080 (NVIDIA 615.78.08), GCC 16.2.1, Release
Build:
main262c0316, then with the open PRs below merged onto itSettings:
APS5_HOST_IMPORT_MIB=16384maincompute shader 0x5006cdc00: AGC graphics: storage image access to depth/stencil surface 0x53a500000 is not implementedmain+ #425 (d6088bed)compute shader 0x5006cdc00: AGC graphics: storage image access to depth surface 0x53d8a0000 (1216x684, vk format 126) as a 960x540 image of vk format 122, dimension 1, 1 mips is not implementedmain+ #454 (dd3a2584)What I see, from a temporary log line in
DepthSurfaceViewandDepthSurfaceAtonmain:0x53a500000is a 960x540D32_SFLOATdepth target with no stencil plane and no HTILE, bound as a depth target 50 times in the 10.4 s after it is created.B10G11R11_UFLOAT_PACK32) at the same base address, 0.1 s after the last depth bind.So it is not the stencil plane (there is none), and not a depth read through a storage descriptor (the format is a colour format). It is reused memory, but the size test suggested above would not separate it: at this address the storage image has the depth surface's own extent. At two other addresses in the same title the depth surface is 1216x684 and the image 960x540.
With a local rule on top of #454 (a written storage image at the surface's own address retires the surface when the surface cannot seed it), the title runs for 180 s without stopping and draws its title sequence. The diff and the test results are in my comment on that PR.
Not established: nothing here was run on Windows or on AMD with the title, and I did not look at what the shader does with the image beyond its binding being marked as written.
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T00:14:31Z.
Another title with this error: Puyo Puyo Tetris 2 (PPSA01530) on Windows, after its missing imports are exported (branch in #3177). Log:
It stops at the first presentation, a different surface address than the first line. I have not looked into the shader or the surface format, so I can not say which of the shapes already described here it matches.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T01:11:38Z.
Ad Infinitum (PPSA10600) on Windows ends on this error too, once its pixel-ancillary failures are out of the way (see #2548):
compute shader 0x200ac30000: AGC graphics: storage image access to depth/stencil surface 0x20c41f0000 is not implemented. That makes two of my titles (with Puyo Puyo Tetris 2 above) that stop here with no other error in their logs.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T07:53:00Z.
Both of my titles that stop here (Puyo Puyo Tetris 2, Ad Infinitum) get past this error with PR #425 merged locally; the next stops are listed on #425 (a buffer descriptor type for Puyo, the stencil plane for Ad Infinitum). So #425 does what this issue needs for those two, but it has conflicts with
mainthat its author has to resolve.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by queeeef on 2026-10-11T17:21:51Z.
Palworld (PPSA23126, 01.102.999, Unreal Engine) stops here during presentation, after the fixes listed in #2648:
With #2904 the message reads
(storage=159x90 guest format=7 mip=0 dimension=2 tile=4)and it still stops: the storage view has the surface's own extent, so it is the real depth-access shape, not reused memory. #425 gets past it.#425 and #2904 conflict in
cachedStorageTexture. I kept #425's code and seeded from depth only when #2904'sDepthSurfaceAt(context, words, viewed)matches (merge commit47e79b06). The next stop is #425's stencil-plane refusal (#2076): a compute shader at presentation reads the stencil planes of 1000x1000, 2048x2048 and 2536x1428 surfaces (storage guest format 5).Windows 11 Pro 26300, RTX 2080 Ti, MinGW-w64 GCC 15.2.0 (WinLibs r7), RelWithDebInfo,
maina11c8f7f7. AI-assisted (Claude Code).Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T19:39:27Z.
Ad Infinitum (PPSA10600) with PR #425 (6d59983d3) merged onto
maina11c8f7f7, Windows, 90 s with a warm shader cache: thestorage image access to depth/stencil surface ... is not implementederror does not appear any more. The next stop iscompute shader 0x200ac30000: AGC graphics: storage access to a depth surface's stencil plane is not implemented, i.e. the stencil plane, which #425 does not cover (a follow-up is planned by ThatsLeo per the thread on #425). I did not test Palworld or PPSA25936.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T20:38:03Z.
@queeeef thanks, your Palworld result (past the depth-access error with #425, next stop the stencil planes of 1000x1000, 2048x2048 and 2536x1428 surfaces) matches what I see on Ad Infinitum with #425 merged onto
maina11c8f7f7: thestorage image access to depth/stencil surfaceerror disappears and the next stop isstorage access to a depth surface's stencil plane is not implemented(my #425 comment; the places in the code that a stencil path would touch are listed in this one). I did not run Palworld myself, so for that title this rests on your run.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T07:08:56Z.
Re-run with the current stack:
maind06c06565plus #425 atf470ffaa2(clean merge, 4 commits), Windows, RTX 4080 SUPER, 150 s each under the game lock.compute shader 0x200ac30000: AGC graphics: storage access to a depth surface's stencil plane is not implemented, the stencil-plane refusal that #425 keeps on purpose. Nothing else before it.buffer descriptor uses an unsupported type). Its log also hasstorage image access to depth surface 0x2137c0000 (1x1, vk format 124) as a 64x64 image of vk format 37 ... is not implementedlines for four 64x64 textures ([gpu] color target ... stays non-resident/[textures] ... keeps the snapshot path); these are logged and the title carries on, so they are not the stop. A 1x1 depth surface viewed as 64x64 images looks like reused memory rather than a view of the depth surface; I did not examine it further.So after #425 the next stop for these two titles is not a depth-storage case; for Ad Infinitum it is the stencil follow-up.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T10:03:07Z.
Same result on the newer base:
main9aa5fd290+ #425 atf470ffaa2(clean merge), Windows, 150 s each. Ad Infinitum (PPSA10600) again ends atcompute shader 0x200ac30000: AGC graphics: storage access to a depth surface's stencil plane is not implemented, this time about 144 s in (the shader compile took longer in this run); Puyo Puyo Tetris 2 (PPSA01530) passes the depth-storage error and stops at #3709. On the PR side Kikoarl's branch with the execution tests (34dd36000,DepthSurfaceStorage.cpp,DepthSurfaceReuse.cpp, ARCHITECTURE and TechnicalDebt text) is the open piece Michon has asked to revise, so I am not writing a competing test.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T15:01:11Z.
Another title in this class, with a sampling case rather than a storage one: Harmony's Odyssey (PPSA16827), Windows,
main3d8ffeb27, about two minutes after the start:dimension 3isTextureDimension::kCube(GuestTextureResource.hpp), over a D32 surface read as R32_FLOAT, which fits a point-light shadow cube map (a guess; the log does not say what the texture is). Onmainthe refusal comes fromDepthSurface::Sampled, which accepts onlyk2D. The depth-plane copy in #425 has a cube branch (six layers, one depth surface per face at consecutive slice addresses,R32_SFLOATorR16_UNORM, base slice 0), so it may cover this; whether it does for this title is not shown, because the six faces would have to be six consecutive depth targets. #4500 only changes the storage path.Not tested with #425 yet; a run with #425 merged onto
mainis possible once the machine is free. Note that #425 currently failsagc_driver_depth_storage_reuseonmain(https://github.com/boykopovar/AnyPS5/pull/425#issuecomment-6125624406).AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T17:04:53Z.
Follow-up on the Harmony's Odyssey (PPSA16827) cube-sampling stop above: with #425 merged onto
main2a5eca11cplus the one-condition change incachedStorageTexture(test/depth-harmony-425-on-main,5ef0e5144), the title ran for 240 s (Windows 10, RTX 4080 SUPER, started and stopped by the time limit) without thesampling the depth plane of depth surface 0x28fb50000 ... dimension 3refusal: 0 matches in the stdout and stderr logs, noFATAL, nowhat(), and nostorage image access to depthline either.What this shows and what it does not: the cube-sampling stop is gone with that branch, so #425's cube branch does cover this title, at least for these 240 s. It does not show that the cube map renders correctly (nobody looked at the picture for that), and the frame rate stayed low (median about 13 FPS, most seconds under 30). That has a different cause that was not investigated here and is not part of this issue.
The unit tests of the same branch passed once earlier (
agc_driver_depth_storage_reuse,depth_compare_copy,depth_fast_clear,depth_fast_clear_submit,depth_bias_per_face,pending_exact_surface,agc_driver_graphics; details on #425). Repeated runs to check for flicker are still to come.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T07:38:02Z.
#425 and #4500 are on main: the depth and stencil planes can be bound as storage images now. Do PPSA10112 and PPSA10600 still stop at
storage image access to depth/stencil surfaceon current main? If not, this can close.Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-13T11:57:41Z.
I can't speak for PPSA10112 or PPSA10600, but two other titles still stop here on
mainb1328fc0f(RTX 5080, NVIDIA 615.78.08, Linux):compute shader 0x200bd80000: AGC graphics: storage image access to depth/stencil surface 0x2002320000 is not implemented (storage=3840x2160 guest format=5 mip=0 dimension=2 tile=4)compute shader 0x2006fb0000: AGC graphics: storage image access to depth/stencil surface 0x2047eb0000 is not implemented (storage=3200x1800 guest format=5 mip=0 dimension=2 tile=4)Both are compute dispatches with a format 5, tile 4 storage image the size of the depth target. Kena's other four runs stop on #5099 instead.
Imported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-13T13:39:48Z.
Correction to my comment above: those runs were on
b1328fc0f, which did not have #2076 yet. Onmain3faa9cb40neither title stops here any more.storage image access to depth/stencil surfaceStray now presents frames: one run went the full 200 s (10448 presents), the other ended after 2344 presents with
[videoout] presentation failed: buffer descriptor uses an unsupported type. Kena stops on #5099 in two runs and once later, at 141 s, onAGC graphics: shader buffer exceeds descriptor range limit.So from these two titles nothing is left for this issue.
Imported from boykopovar/AnyPS5. Originally posted by RedIN3rds on 2026-10-13T22:39:54Z.
On latest main PPSA10112 now displays video out, but when loading the menu the game crashes with error:
[videoout] presentation failed: compute shader 0x2007a70000: AGC graphics: storage image access to depth/stencil surface 0x205d960000 is not implemented (storage=1024x1024 guest format=7 mip=0 dimension=2 tile=4)Attached below is the full log of the run
SHPC-Crash-Log-10132026.txt
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:45:38Z.
#5003 (storage access to depth/stencil surfaces) merged after your last run. Could you retest PPSA10112 on current main and post the stop if it still happens?
Imported from boykopovar/AnyPS5. Originally posted by RedIN3rds on 2026-10-14T05:41:35Z.
Seems like the depth/stencil surfaces are good now! Though its throwing a new error when trying to load into the menu.
[videoout] presentation failed: AGC graphics: storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented terminate called after throwing an instance of 'std::runtime_error' what(): AGC graphics: storing storage image results pending over memory outside the write watch without the guest bytes saved before them is not implementedSHPC-Crash-Log-10142026.txt
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T06:05:39Z.
The new exception text in this log is identical to the one described in #5671. That PR targets one Windows case where a 64 KiB write-watch block is dropped while pending storage-image results still cover another part of the block. The issue log shows an AMD Windows run, but it does not by itself establish that same transition. Could you try #5671’s head on this title and report whether the exception moves, or capture
APS5_TRACE_FLUSH=1around the affected storage address?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T15:17:21Z.
Follow-up: #5671 merged to
mainase53927780c56d65309768784b47baff80e0030c0, and currentmaincontains it. That change saves pending storage-image results when any 64 KiB block leaves the write watch. Could you retry PPSA10112 on an unmodified current-main build and report whether this exception still occurs? The earlier log alone does not show whether it hits the same transition, so I am not treating the issue as fixed yet.Imported from boykopovar/AnyPS5. Originally posted by AlxcBTW on 2026-10-15T21:46:25Z.
Another title with this text: Minecraft Dungeons II (PPSA16064, Unreal Engine 5), Windows 11, RTX 5070 Laptop (NVIDIA 617.42). On a build of
mainthat contains #5671 it stops while loading its first world (2 of 2 runs without lab switches), withA diagnostic build (not in
main) names the refused image: the 2564x1444 scene colour target (DCC, 252 units of 64 KiB). All 252 units have results pending, none has saved guest bytes, none of its memory is write-watched, and the flush comes from an imported buffer region (UploadFinishmakes the import, then flushes the pending images over it).That state fits one exit of the write watch that never ran the unwatch hook:
GuestMemory::ImportWatchedkeeps the range of an import that stays watched only while its page walk can vouch for the pages, and otherwise excludes the range (unwatchLocked).Unwatchand the import that does not stay watched call the hook first (#5657, #5671), so the images with results pending over the range save their guest bytes. This exit did not, so those images reached their store with nothing to compare with. In this title the range was not wholly watched before the import in every event the build reported (16, all 8 MiB import windows).#6308 calls the hook there. With the same change in a lab build the title loads its world and plays: five of five rows (one fresh world load from the main menu, four from a save inside the world, each walking 180 s with the HUD up) ran without the refusal, at 2.6 FPS on the fresh load and 4.0-4.5 FPS warm; the hook ran 32 times per row. Without the change 2 of 2 world loads stopped. The other exit without the hook,
MarkWrittenexcluding a block after a failed fresh collect, is not changed by it and stays in the debt entry.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T23:10:52Z.
Thanks, this is an independent title reproduction of the
ImportWatchedfallback fixed by open PR #6308. The PR now includes your Minecraft Dungeons II results and the existing regression covers an import spanning a partly unwatched range. I do not see a separate change to split out; theMarkWrittenexit you call out remains a distinct follow-up.