Ghost of Yōtei: compute shader 0x80003aa700 loads its T# from a buffer at an index read from another buffer in a loop (GetImageResource dword 0 is not a valid runtime value) #2715
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 EdouardSence on 2026-10-10T12:00:59Z.
Title: Ghost of Yōtei (PPSA26344)
Where it stops: about 26 s in, on main
b5f5362d3plus the two changes it needs to get this far: #1940 (operand 235, #1920) and Pipodi's44a80d4f(relocated header copies, see #1837). On plain main it stops earlier, on #1920.(the message is cut at that length in the log.)
What the chain says
The image descriptor's dword 0 is a
ReadConstBufferat pc0x590whose offset isIMul32(ReadConstBuffer@pc=0x258(...), ...). That inner read's offset comes fromShiftLeftLogical32(Phi(...)), where the Phi is a loop counter: it starts at aReadConstBuffer@pc=0x1e8value masked with a builtin (BitwiseAnd32(GetBuiltin, Immediate)) and steps byIAdd32(Phi, Immediate). So the T# is loaded from a buffer, at an index read from another buffer, per loop iteration. That is not a statically resolvable descriptor or one of the bindless table forms the recompiler matches.I have not looked for the semantics of what the title stores in those buffers, so this is only the report of the stop. 172 shaders were deferred to first use before it, without a problem.
Setup
CachyOS (kernel 7.2.9), RX 9070 XT (RADV), Release, headless gamescope with scripted input.
Tested and written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-10T13:01:21Z.
The full chain and the disassembly of
0x80003aa700are in https://github.com/boykopovar/AnyPS5/discussions/675#discussioncomment-18850796. It is a record table:[start, end)per workgroup → index list → 0x330-byte record with the S# at +0x88 and a 128-bit T# at +0x98, inline and with no pointer.Tested and written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-10T20:00:06Z.
Update: with #757/#758 stacked (main
4a747c487+ #1940 + #758 +44a80d4f),0x80003aa700gets past this analysis stop on RADV. It then hits a RADV descriptor allocation failure for a variable descriptor count of 0, with a workaround tested on #757: https://github.com/boykopovar/AnyPS5/pull/757. With that workaround the next stop is0x8000265d00(unnormalized sampler with a texel offset, #822).Tested and written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by Tamalero on 2026-10-11T05:25:53Z.
Another title hits this: Marvel's Guardians of the Galaxy (PPSA01748). It runs its loading screen (the shield spinner) at a steady 30 FPS for about 74 s / 1,350 frames, then aborts with
GetImageResource dword 0 is not a valid runtime valueon the first dispatch of one of these shaders. Nothing else stops it before that point, so this is its next blocker, and a second title #757 could unblock. Happy to test #757/#758 on it if that's useful.Details
Title: Marvel's Guardians of the Galaxy (PPSA01748, content 01.006.000). Linux (CachyOS), RTX 4090, AnyPS5
f1ae427bplus local fixes. The ones Guardians needs to get past startup: PlayGo chunk ids withoutplaygo-chunkdefs.xml(#3238), a null base insceAgcDcbSetBaseIndirectArgs(#3239), sysmodule ids 0x10B/0x10F (#3240) and 0x110 (#2541), and an offlinesceNpGetUserIdByAccountId(#2852). 2 of 2 runs.Six shaders fail with this reason: five are deferred at registration, and the one the title dispatches fails at that point. They come in two shapes:
1. Loop-counter index (same as this issue). The dispatched one (
pc=0x588) and the deferred0x5d4and0x974have the same chain:2. Data-dependent index, waterfall over lanes (
pc=0x4378,0x4380×2, not dispatched yet). The index isReadFirstLaneof a value picked throughFindILsb32of a lane mask, and part of it comes from anImageRead:(The log truncates the chain there.)
I haven't attached the
RecompileRequestdumps, since they are the game's shader code.Tested and written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T20:29:36Z.
#757, #758 and #4475 are merged now (tables indexed at runtime offsets, and records that hold a pointer to the T#). Does PPSA26344 still stop at compute shader 0x80003aa700 on current main? If it gets further, please post the new stop.
Imported from boykopovar/AnyPS5. Originally posted by xcentriq-afk on 2026-10-17T11:36:22Z.
Hit the same recompiler stop on the v0.1.2 release binary (Windows), another shader site: compute
0x80003b2200(this issue's is0x80003aa700). Same loop-indexed T# chain shape (ReadConstBuffer@pc=0x5bc/0x260/0x1f8with theShiftLeftLogical32(Phi(...))loop counter).Setup
--windows --to-intel(i5-14600K)[videoout]presentationStop
Also worth noting: several shaders were deferred to first use with
unsupported MIMG opcode 0xe5, and one log lineshader library prebuild skipped: DescriptorBindingBuilder::Populate multisampled image resources have no descriptor image shapeappeared shortly before the stop. Happy to provide the full logs or test a main-branch build on this setup.Imported from boykopovar/AnyPS5. Originally posted by paulgenes13 on 2026-10-18T12:54:45Z.
Windows follow-up: three additional Ghost of Yōtei compute shader failures on current main
I reproduced three additional
GetImageResource dword 0 is not a valid runtime valuefailures from Ghost of Yōtei (PPSA26344), using previously captured shader requests and a fresh official build.Environment
mainat commit6efb7261b, cloned and built independently on 2026-10-18.agc_shader_replay.exe.Offline reproduction
Run the newly built replay tool against the three previously captured request files:
0x8000361f00GetImageResource dword 0; chain starts withReadFirstLane(Phi(...))0x80001ddd00GetImageResource dword 0;ReadConstBuffer@pc=0x2320(...)with nestedReadFirstLane(...)0x8000133e00GetImageResource dword 0;ReadConstBuffer@pc=0x2ae8(...)with nestedReadFirstLane(...)All three fail at resource analysis, before SPIR-V emission. The clean build produces the same failure class as the earlier modified build.
Testing the clean build with
APS5_SINGLE_LANE=8000361f00,80001ddd00,8000133e00produced the same offline replay output; the setting did not resolve any of these cases.Closer look at
0x8000361f00I temporarily instrumented
ResolveInvariantPhi()inIrProgram.cppand replayed the captured shader. The original source was restored afterward, and the diagnostic was performed separately from the fresh official build.The first rejected Phi was ID
22163, with two incoming arguments:SelectU32ID4749.PhiID22164.Traversing the nested Phis identified this first structurally non-equivalent leaf pair:
SelectU32ID8423SelectU32ID8189LogicalAndID8403LogicalAndID7554INotEqual32ID8395LogicalAndID7301The first structural mismatch occurs inside the conditions supplied to the two
SelectU32expressions. Both branch trees refer to the sameReadConstvalue (ID24655,GetSrtResourceslot0x17), but their predicates and fallback expressions differ.This establishes that the current invariant-Phi equivalence check cannot prove the incoming values equal. It does not prove whether the expressions are semantically equivalent, and it would not justify selecting one branch or simply bypassing validation.
IR observation
With the built-in
APS5_DUMP_IR=8000361f00, thesrtIR shows eightReadFirstLaneoperations feeding the eight dwords of aGetImageResourcehandle. The shader compares the selected descriptor with per-lane values, samples withImageSampleRaw, and updates a lane mask. This is consistent with a waterfall-style loop for per-lane image descriptor selection.Scope / offer
The captured cases appear related to runtime image descriptor selection,
ReadFirstLane, and Phi-dependent control flow, but I have not established whether the right fix is in Phi simplification, SRT runtime validation, or image-table planning. The observations above are from actual local offline runs, not a proposed patch.I am not uploading
.reqcaptures because they include guest shader code and captured memory. I can run additional offline checks or share more targeted diagnostic output if useful.Investigated and documented with AI assistance; test results were produced locally.