PPSA07412: ShaderRecompiler abort "GetImageResource dword 0 is not a valid runtime value" (waterfall loop over per-lane T#) #7345
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 medazizmakni2010-ctrl on 2026-10-18T01:24:49Z.
Environment: Windows 11, Ryzen 9800X3D, RX 9070 XT (selected as the Vulkan device), WinLibs GCC 15.2.0 (UCRT, POSIX, SEH). AnyPS5 at
5229b5b82(origin/main), built from a clean tree. Title PPSA07412 (window title “Resident Evil 4”), converted with relinker.exe --windows.What happens: the title loads and compiles shaders, then aborts with exit code 0xC0000409:
[libc] unhandled exception 'St13runtime_error' ...
what(): shader 0x2070b5a700 stage 5: ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: ReadFirstLane(SelectU32(IEqual32(GetBuiltin(...), ...), CompositeExtractU32x4(LoadBufferU32x4(GetBufferResource(ReadConst(GetSrtResource, ...), ...), GetInterpolationParameter(...), ...), ...), ...), Phi(IEqual32(GetBuiltin(...), ...), LogicalAnd(...)))
FATAL: abort() (SIGABRT)
The shader address changes between runs. Disabling the pipeline journal (APS5_NO_PIPELINE_JOURNAL=1) makes no difference. A cold shader cache and a warm one end the same way.
Analysis (my reading, not verified): the chain looks like a waterfall loop over a per-lane T#. It is loaded by a vector buffer load whose offset is an interpolated pixel-shader parameter, and then made uniform with ReadFirstLane. RuntimeValidator (SrtRuntimeValidator.cpp) accepts only the ops in IsRuntimeUniformOp, and LoadBufferU32x4, GetInterpolationParameter and LaneId are not in that list.
Related history:
f234476b2(“plan waterfall loops over per-lane T#s as non-uniform tables”) describes this error and added support for it. It was reverted in353094a25on 2026-10-14 because agc_driver_waterfall_images failed SPIR-V validation (VUID-StandaloneSpirv-DerivativeGroupQuadsKHR-10151). Reverting the revert on current main conflicts in 8 files, including ResourceTracker.cpp and ShaderDiskCache.Question: is re-landing waterfall descriptors planned? I can test a branch on this title. The RecompileRequest blob is in my log and I can share it if needed.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T01:48:22Z.
I checked the current PR inventory before proposing another change: open PR #6488 is already the re-landing of waterfall loops over per-lane T#s through image tables. Its author has reported the original
GetImageResourcefailure on an older main and a successful GTA V branch run with the PR, while noting the run did not reach Story gameplay. The current head isf85278a89; GitHub marks the branch conflicting and needing a rebase, although its conventions, eligibility, intake and report checks pass (platform builds are skipped). I cannot speak for maintainer plans, but a second implementation would overlap #6488. If you can run this RE4 request on a rebased #6488 head, that would give its author useful validation specific to this new report.Imported from boykopovar/AnyPS5. Originally posted by MuteRex on 2026-10-21T10:15:12Z.
Another RE Engine title stops on the same refusal: Resident Evil 2 (PPSA04288), this time in a compute shader and through
ReadLanerather thanReadFirstLane.Environment: Ubuntu, Linux 7.0.0, RX 9060 XT (RADV GFX1200, Mesa 26.0.8), AnyPS5 at
27c88a8d7(origin/main) with two unrelated local changes (display selection, and the host-import ceiling fix from my upcoming PR). Converted withrelinkeron Linux.What happens: the title presents its first screens (~8 presents/s), then on the first heavy screen the recompiler refuses a compute shader and the process aborts:
My reading: the same waterfall pattern as RE4. The T# is a
LoadBufferU32x4from an SRT buffer at a per-lane offset (aReadConstBuffer-derived index selected under a per-lane mask), and it is made uniform withReadLaneof a lane picked from aLaneIdbit mask inside the loop. It should be covered by the waterfall image tables in #6488 if that PR handles compute shaders andReadLaneas well asReadFirstLane. I can test a rebased #6488 branch on this title.