Ghost of Yōtei: compute shader calls a user-data function pointer with s_swappc_b64 (not statically resolvable) #1817

Closed
opened 2026-10-08 20:19:13 +00:00 by EdouardSence · 9 comments
EdouardSence commented 2026-10-08 20:19:13 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-08T20:19:13Z.


Title: Ghost of Yōtei (PPSA26344 v01.008.000, retail).
Build: main 4b6ab6bb, Linux, RX 9070 XT, Mesa 26.2.4 RADV.

On current main the title stops at the first shader build with an uncaught exception:

[libc] unhandled exception 'St16invalid_argument' thrown from ...
terminate called after throwing an instance of 'std::invalid_argument'
  what():  computed/data-dependent s_swappc_b64 call target at program counter 0x00000074 is not statically resolvable

What the shader does

It is a compute shader (ShaderStageKind::Compute, so no vertex input metadata and fetchCallAllowed is false). The call is not at the program entry. The shader first sets up vector state, then copies a user-data pointer pair into the link pair and calls through it. The rest of the program continues after the call:

0x00000044  v_cmpx... exec_lo, s13, v0        (vector code before the call)
0x0000004c  v_mov_b32 v4, s12
0x00000050  v_mov_b32 v5, v0
0x00000054  v_mov_b32 v6, 0  /  v7, 0  /  v8, 0
0x00000060  s_mov_b32 s14, s4                 (user data, base s0, 15 user-data registers)
0x00000064  s_mov_b32 s15, s5
0x00000068  s_mov_b32 s16, s6
0x0000006c  s_mov_b32 s17, s7
0x00000070  v_... v0, 64, v0
0x00000074  s_swappc_b64 s[14:15], s[14:15]   <- target = user data s4:s5
0x00000078  v_mov_b32 v5, v6 ...              (continues after the return)

GraphBuilder::analyzeSwappcCalls reports fetchAllowed=0 positional=0 userDataPair=0 staticTarget=0. userDataPair is 0 because s14:s15 is written by the s_movs rather than being the user-data registers themselves. The caller passes arguments in v4–v8 and s16:s17, so this looks like a fetch-style subroutine called from a compute shader (vertex pulling for culling or skinning). TechnicalDebt lists arbitrary indirect calls as not implemented.

Before c48e0197 this encoding decoded as s_setpc_b64, so older builds got past this shader. They did it by treating the call as a jump, which was wrong. That is why earlier Yōtei reports (#759, #822) stopped later, on other shaders.

Possible direction

The target comes from user data, which is known when the request is captured. So the callee could be read from guest memory at that address, decoded, and appended to the program as a static call region, which GraphBuilder already supports for in-program calls. The callee's code would then go into the specialization/cache key. I'd like to work on this unless someone already is. Comments on the approach are welcome.

Investigated and written by Claude (AI assistant) on a contributor's machine; the diagnostic print used to get the instruction listing was local only.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5768338475 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1817). Originally posted by [EdouardSence](https://github.com/EdouardSence) on 2026-10-08T20:19:13Z. --- **Title:** Ghost of Yōtei (PPSA26344 v01.008.000, retail). **Build:** `main` 4b6ab6bb, Linux, RX 9070 XT, Mesa 26.2.4 RADV. On current `main` the title stops at the first shader build with an uncaught exception: ``` [libc] unhandled exception 'St16invalid_argument' thrown from ... terminate called after throwing an instance of 'std::invalid_argument' what(): computed/data-dependent s_swappc_b64 call target at program counter 0x00000074 is not statically resolvable ``` ### What the shader does It is a **compute** shader (`ShaderStageKind::Compute`, so no vertex input metadata and `fetchCallAllowed` is false). The call is not at the program entry. The shader first sets up vector state, then copies a user-data pointer pair into the link pair and calls through it. The rest of the program continues after the call: ``` 0x00000044 v_cmpx... exec_lo, s13, v0 (vector code before the call) 0x0000004c v_mov_b32 v4, s12 0x00000050 v_mov_b32 v5, v0 0x00000054 v_mov_b32 v6, 0 / v7, 0 / v8, 0 0x00000060 s_mov_b32 s14, s4 (user data, base s0, 15 user-data registers) 0x00000064 s_mov_b32 s15, s5 0x00000068 s_mov_b32 s16, s6 0x0000006c s_mov_b32 s17, s7 0x00000070 v_... v0, 64, v0 0x00000074 s_swappc_b64 s[14:15], s[14:15] <- target = user data s4:s5 0x00000078 v_mov_b32 v5, v6 ... (continues after the return) ``` `GraphBuilder::analyzeSwappcCalls` reports `fetchAllowed=0 positional=0 userDataPair=0 staticTarget=0`. `userDataPair` is 0 because s14:s15 is written by the `s_mov`s rather than being the user-data registers themselves. The caller passes arguments in v4–v8 and s16:s17, so this looks like a fetch-style subroutine called from a compute shader (vertex pulling for culling or skinning). TechnicalDebt lists arbitrary indirect calls as not implemented. Before c48e0197 this encoding decoded as `s_setpc_b64`, so older builds got past this shader. They did it by treating the call as a jump, which was wrong. That is why earlier Yōtei reports (#759, #822) stopped later, on other shaders. ### Possible direction The target comes from user data, which is known when the request is captured. So the callee could be read from guest memory at that address, decoded, and appended to the program as a static call region, which `GraphBuilder` already supports for in-program calls. The callee's code would then go into the specialization/cache key. I'd like to work on this unless someone already is. Comments on the approach are welcome. *Investigated and written by Claude (AI assistant) on a contributor's machine; the diagnostic print used to get the instruction listing was local only.*
EdouardSence commented 2026-10-08 20:22:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-08T20:22:27Z.


Follow-up after reading how prepared shaders work on main (4b6ab6bb). The direction I suggested above doesn't fit as-is:

  • PrepareShader builds one program per source code (Recompiler.cpp, findOrCompileVariant). Variants change specialization constants, push data and bindings, but never the program. Here the program depends on the callee, and its address is only known from request.context.userData at dispatch.
  • The throw happens while the shader is prepared, apparently at registration (no dispatch is logged before it), so before any user data exists.

A version that works with the current design would probably need these pieces:

  1. At preparation, recognize "call through a user-data pair" (here s_mov s14, s4 / s_mov s15, s5 then s_swappc_b64 s[14:15], s[14:15]) and defer the shader instead of throwing.
  2. At dispatch, read the callee from guest memory at the user-data address. Build a source whose code is the caller with the callee appended, and record the call target as the appended offset. GraphBuilder then handles it as an ordinary static call region. Keying the source on that combined code makes the cache follow the callee by itself.
  3. In ShaderRegistry (InvocationFor), route such shaders to the dispatch-time path, the way unregistered compute shaders already are.

This touches the prepared-shader flow in the driver, not just the recompiler. So I'd rather hear whether this shape is acceptable, or whether there is a preferred way, before writing it.

Analysis by Claude (AI assistant) on a contributor's machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6068354649 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1817#issuecomment-6068354649). Originally posted by [EdouardSence](https://github.com/EdouardSence) on 2026-10-08T20:22:27Z. --- Follow-up after reading how prepared shaders work on `main` (4b6ab6bb). The direction I suggested above doesn't fit as-is: - `PrepareShader` builds one program per source code (`Recompiler.cpp`, `findOrCompileVariant`). Variants change specialization constants, push data and bindings, but never the program. Here the program depends on the callee, and its address is only known from `request.context.userData` at dispatch. - The throw happens while the shader is prepared, apparently at registration (no dispatch is logged before it), so before any user data exists. A version that works with the current design would probably need these pieces: 1. At preparation, recognize "call through a user-data pair" (here `s_mov s14, s4` / `s_mov s15, s5` then `s_swappc_b64 s[14:15], s[14:15]`) and defer the shader instead of throwing. 2. At dispatch, read the callee from guest memory at the user-data address. Build a source whose code is the caller with the callee appended, and record the call target as the appended offset. `GraphBuilder` then handles it as an ordinary static call region. Keying the source on that combined code makes the cache follow the callee by itself. 3. In `ShaderRegistry` (`InvocationFor`), route such shaders to the dispatch-time path, the way unregistered compute shaders already are. This touches the prepared-shader flow in the driver, not just the recompiler. So I'd rather hear whether this shape is acceptable, or whether there is a preferred way, before writing it. *Analysis by Claude (AI assistant) on a contributor's machine.*
EdouardSence commented 2026-10-08 20:31:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-08T20:31:19Z.


Same stop on a second title, which makes this a regression on main.

Astro Bot (PPSA21567 v01.019.000, retail), current main 4b6ab6bb, same machine. No frame is presented, and the run ends with:

terminate called after throwing an instance of 'std::invalid_argument'
  what():  computed/data-dependent s_swappc_b64 call target at program counter 0x00000074 is not statically resolvable

The program counter (0x74) is the same as in Ghost of Yōtei, so this is probably the same SDK-generated compute shader in both titles.

Yesterday's builds (main 6b573862 + #759) took Astro Bot through boot, the title screen and into the intro cutscene. Those builds predate c48e0197, which now decodes s_swappc_b64 instead of treating it as s_setpc_b64. So since that commit, Astro Bot stops before its first frame on main.

Tested and written by Claude (AI assistant) on a contributor's machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6068499651 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1817#issuecomment-6068499651). Originally posted by [EdouardSence](https://github.com/EdouardSence) on 2026-10-08T20:31:19Z. --- Same stop on a second title, which makes this a regression on `main`. **Astro Bot** (PPSA21567 v01.019.000, retail), current `main` 4b6ab6bb, same machine. No frame is presented, and the run ends with: ``` terminate called after throwing an instance of 'std::invalid_argument' what(): computed/data-dependent s_swappc_b64 call target at program counter 0x00000074 is not statically resolvable ``` The program counter (0x74) is the same as in Ghost of Yōtei, so this is probably the same SDK-generated compute shader in both titles. Yesterday's builds (`main` 6b573862 + #759) took Astro Bot through boot, the title screen and into the intro cutscene. Those builds predate c48e0197, which now decodes `s_swappc_b64` instead of treating it as `s_setpc_b64`. So since that commit, Astro Bot stops before its first frame on `main`. *Tested and written by Claude (AI assistant) on a contributor's machine.*
EdouardSence commented 2026-10-08 20:35:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-08T20:35:06Z.


Correction to my previous comment: c48e0197 is not where this started. I built the commits around it and #639 and ran Astro Bot (PPSA21567) on each, with the same scripted input, headless, 240 s:

build result
main 2b297842 (just before #639) no frame: compute shader 0x5005f6100: AGC driver: guest memory is not readable at 0x30 (the null-SRT read that #759 handles)
main 23941235 (#639 merged) no frame: unsupported SOP1 opcode 33, raised while shaders are prepared, with no compute shader 0x… prefix
main 6b56175a (just before #1217) no frame: unsupported SOP1 opcode 33
main 4b6ab6bb (current) no frame: computed/data-dependent s_swappc_b64 call target at program counter 0x00000074 is not statically resolvable

Yesterday's build that reached the intro cutscene was main 6b573862 + #759, which predates #639.

So the s_swappc_b64 compute shader was already unsupported before #1217, but it was only built when dispatched, and in my runs that came after the title screen. Since #639 prepares registered shaders up front, the shader now fails at boot. #1217 only changed the message.

That suggests a smaller first step than the call-inlining work above: a shader that cannot be prepared could be deferred instead of ending the run, and fail only if it is actually dispatched. #639's own path for unregistered compute shaders already prepares at dispatch.

Tested and written by Claude (AI assistant) on a contributor's machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6068560178 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1817#issuecomment-6068560178). Originally posted by [EdouardSence](https://github.com/EdouardSence) on 2026-10-08T20:35:06Z. --- Correction to my previous comment: c48e0197 is not where this started. I built the commits around it and #639 and ran Astro Bot (PPSA21567) on each, with the same scripted input, headless, 240 s: | build | result | |---|---| | `main` 2b297842 (just before #639) | no frame: `compute shader 0x5005f6100: AGC driver: guest memory is not readable at 0x30` (the null-SRT read that #759 handles) | | `main` 23941235 (#639 merged) | no frame: `unsupported SOP1 opcode 33`, raised while shaders are prepared, with no `compute shader 0x…` prefix | | `main` 6b56175a (just before #1217) | no frame: `unsupported SOP1 opcode 33` | | `main` 4b6ab6bb (current) | no frame: `computed/data-dependent s_swappc_b64 call target at program counter 0x00000074 is not statically resolvable` | Yesterday's build that reached the intro cutscene was `main` 6b573862 + #759, which predates #639. So the `s_swappc_b64` compute shader was already unsupported before #1217, but it was only built when dispatched, and in my runs that came after the title screen. Since #639 prepares registered shaders up front, the shader now fails at boot. #1217 only changed the message. That suggests a smaller first step than the call-inlining work above: a shader that cannot be prepared could be deferred instead of ending the run, and fail only if it is actually dispatched. #639's own path for unregistered compute shaders already prepares at dispatch. *Tested and written by Claude (AI assistant) on a contributor's machine.*
EdouardSence commented 2026-10-08 21:09:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-08T21:09:19Z.


The deferral suggested above is now #1836. With it, Astro Bot on main gets past its 132 unpreparable shaders. The next stop was a separate header-copy check, now #1837. After both, it stops on #1789. The s_swappc_b64 call itself stays unimplemented: a shader that really dispatches it still fails, now at dispatch time.

Written by Claude (AI assistant) on a contributor's machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6069098892 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1817#issuecomment-6069098892). Originally posted by [EdouardSence](https://github.com/EdouardSence) on 2026-10-08T21:09:19Z. --- The deferral suggested above is now #1836. With it, Astro Bot on `main` gets past its 132 unpreparable shaders. The next stop was a separate header-copy check, now #1837. After both, it stops on #1789. The `s_swappc_b64` call itself stays unimplemented: a shader that really dispatches it still fails, now at dispatch time. *Written by Claude (AI assistant) on a contributor's machine.*
Dextroid17 commented 2026-10-08 23:33:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-08T23:33:57Z.


Confirmation from a run, plus what it takes to reach this wall.

Reproduced with PPSA26344 (Ghost of Yōtei 01.008), decrypted eboot.bin relinked, staged runtime layout, RTX 3080 Ti, Linux:

[libc] unhandled exception 'St16invalid_argument' thrown from 0x7f9bfc5c43fd
terminate called after throwing an instance of 'std::invalid_argument'
  what(): computed/data-dependent s_swappc_b64 call target at program counter 0x00000074 is not statically resolvable

One thing worth recording for whoever picks this up: the title only reaches this wall with #757 applied (image/sampler tables at runtime offsets). On main alone it dies earlier, at presentation, with GetImageResource dword 0 is not a valid runtime value — so #757 is a prerequisite for reproducing this, and this issue is the second of two consecutive walls rather than the first.

Also worth noting: the title had already compiled 53 shaders (17.4 MiB written to the shader disk cache) before this abort, so the failure is a specific compute shader whose call target comes from user data — not a general shader-preparation failure.

Log kept. Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6071136459 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1817#issuecomment-6071136459). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-08T23:33:57Z. --- Confirmation from a run, plus what it takes to reach this wall. Reproduced with **PPSA26344 (Ghost of Yōtei 01.008)**, decrypted `eboot.bin` relinked, staged runtime layout, RTX 3080 Ti, Linux: ``` [libc] unhandled exception 'St16invalid_argument' thrown from 0x7f9bfc5c43fd terminate called after throwing an instance of 'std::invalid_argument' what(): computed/data-dependent s_swappc_b64 call target at program counter 0x00000074 is not statically resolvable ``` One thing worth recording for whoever picks this up: the title only *reaches* this wall with **#757** applied (image/sampler tables at runtime offsets). On `main` alone it dies earlier, at presentation, with `GetImageResource dword 0 is not a valid runtime value` — so #757 is a prerequisite for reproducing this, and this issue is the second of two consecutive walls rather than the first. Also worth noting: the title had already compiled 53 shaders (17.4 MiB written to the shader disk cache) before this abort, so the failure is a specific compute shader whose call target comes from user data — not a general shader-preparation failure. Log kept. Written with AI assistance.
Dextroid17 commented 2026-10-08 23:45:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-08T23:45:16Z.


Follow-up from the same title run — good news and the honest limit.

With #1836 applied (on top of #757), PPSA26344 no longer aborts on this: the shaders whose call target is data-dependent are deferred and the title keeps running (29 threads, ~100% CPU, GPU active two minutes in, no terminate).

Shader 0x55a82bc5f700 could not be prepared at registration
   (computed/data-dependent s_swappc_b64 call target at program counter 0x00000074 is not statically resolvable)
   ×20, then the run continues

So the deferral takes the abort out of the way — but it does not implement the missing capability: those 20 shaders are still unprepared when the title first needs them. This issue stays open on its own merits; #1836 only removes the startup crash, and the first use of one of these shaders is presumably where the next symptom will appear.

Runs measured on main + #757 + #1836, RTX 3080 Ti, Linux. Log kept. Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6071265193 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1817#issuecomment-6071265193). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-08T23:45:16Z. --- Follow-up from the same title run — good news and the honest limit. With **#1836** applied (on top of #757), PPSA26344 no longer aborts on this: the shaders whose call target is data-dependent are *deferred* and the title keeps running (29 threads, ~100% CPU, GPU active two minutes in, no `terminate`). ``` Shader 0x55a82bc5f700 could not be prepared at registration (computed/data-dependent s_swappc_b64 call target at program counter 0x00000074 is not statically resolvable) ×20, then the run continues ``` So the deferral takes the abort out of the way — but it does **not** implement the missing capability: those 20 shaders are still unprepared when the title first needs them. This issue stays open on its own merits; #1836 only removes the startup crash, and the first *use* of one of these shaders is presumably where the next symptom will appear. Runs measured on `main` + #757 + #1836, RTX 3080 Ti, Linux. Log kept. Written with AI assistance.
johnmaia commented 2026-10-09 06:49:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-09T06:49:53Z.


A third title hits this: Disney Epic Mickey: Rebrushed (PPSA15657 v01.000.000, retail, UE4). It fails with the same message at program counter 0x74. Measured on RX 7600 (gfx1102), Linux, with main f1451396 plus a local stack of open import PRs.

Same shader shape, with a detail that matters for the inlining design. The whole program at 0x74 is a compute AABB reduction. It makes four calls, all through the same link pair, to two different user-data targets:

0x0060  s_mov_b32 s14, s4 ... s_mov_b32 s17, s7
0x0074  s_swappc_b64 s[14:15], s[14:15]   ; target s[4:5]: index fetch (v4=s12, v5=index -> v6..v8)
0x008c  s_mov_b32 s14, s8 ... s_mov_b32 s17, s11
0x00a4  s_swappc_b64 s[14:15], s[14:15]   ; target s[8:9]: position fetch (-> v6..v8)
0x00e4  s_swappc_b64 s[14:15], s[14:15]   ; target s[8:9]
0x0120  s_swappc_b64 s[14:15], s[14:15]   ; target s[8:9]
0x0154  s_branch 0x0048                   ; all four calls sit inside a loop
        ... v_min3/v_max3, then ds_min_f32/ds_max_f32 into LDS

So appending one callee as a single static call region is not enough by itself:

  • analyzeSwappcCalls rejects a link register shared by several calls ("link register s[14] is shared with another call").
  • One call region supports only one return site, but the s[8:9] callee is called from three places.

Either each call site gets its own copy of its callee, or the return has to pick the right call site. s[16:17] (the upper half of the user-data quad) is also set before each call, so the callees probably read a buffer descriptor from s[16:19].

With #1836 (conflict in ShaderRegistry.cpp resolved locally):

  • In the first 4-minute run, 68 shaders are deferred with this message, at 21 different program counters from 0x40 to 0xd8. So it's a family of SDK-generated shaders, not one.
  • With #1940, #1893, #1904, #1934 and #1837 also applied, the title gets much further: swapchain, save data mounts, texture uploads and about 4,100 prepared shaders. By then 380 shaders are deferred with this message.
  • None of them was dispatched before the title stopped on unrelated issues (now an unimplemented NpEntitlementAccess stub). So in this title, #1836 alone is enough to get past this for now.

Happy to test an implementation on this title. Raw words of the 0x74 program are available if useful.

Tested and written by Claude (AI assistant) on a contributor's machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6075940165 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1817#issuecomment-6075940165). Originally posted by [johnmaia](https://github.com/johnmaia) on 2026-10-09T06:49:53Z. --- A third title hits this: **Disney Epic Mickey: Rebrushed** (PPSA15657 v01.000.000, retail, UE4). It fails with the same message at program counter `0x74`. Measured on RX 7600 (gfx1102), Linux, with `main` f1451396 plus a local stack of open import PRs. **Same shader shape, with a detail that matters for the inlining design.** The whole program at `0x74` is a compute AABB reduction. It makes **four** calls, all through the same link pair, to **two** different user-data targets: ``` 0x0060 s_mov_b32 s14, s4 ... s_mov_b32 s17, s7 0x0074 s_swappc_b64 s[14:15], s[14:15] ; target s[4:5]: index fetch (v4=s12, v5=index -> v6..v8) 0x008c s_mov_b32 s14, s8 ... s_mov_b32 s17, s11 0x00a4 s_swappc_b64 s[14:15], s[14:15] ; target s[8:9]: position fetch (-> v6..v8) 0x00e4 s_swappc_b64 s[14:15], s[14:15] ; target s[8:9] 0x0120 s_swappc_b64 s[14:15], s[14:15] ; target s[8:9] 0x0154 s_branch 0x0048 ; all four calls sit inside a loop ... v_min3/v_max3, then ds_min_f32/ds_max_f32 into LDS ``` So appending one callee as a single static call region is not enough by itself: - `analyzeSwappcCalls` rejects a link register shared by several calls ("link register s[14] is shared with another call"). - One call region supports only one return site, but the `s[8:9]` callee is called from three places. Either each call site gets its own copy of its callee, or the return has to pick the right call site. `s[16:17]` (the upper half of the user-data quad) is also set before each call, so the callees probably read a buffer descriptor from `s[16:19]`. **With #1836** (conflict in `ShaderRegistry.cpp` resolved locally): - In the first 4-minute run, 68 shaders are deferred with this message, at 21 different program counters from `0x40` to `0xd8`. So it's a family of SDK-generated shaders, not one. - With #1940, #1893, #1904, #1934 and #1837 also applied, the title gets much further: swapchain, save data mounts, texture uploads and about 4,100 prepared shaders. By then **380** shaders are deferred with this message. - None of them was dispatched before the title stopped on unrelated issues (now an unimplemented NpEntitlementAccess stub). So in this title, #1836 alone is enough to get past this for now. Happy to test an implementation on this title. Raw words of the `0x74` program are available if useful. *Tested and written by Claude (AI assistant) on a contributor's machine.*
oneandonlydean commented 2026-10-10 06:25:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T06:25:44Z.


#1836 is merged: a shader whose s_swappc_b64 target is computed is now prepared at its first dispatch instead of failing at registration. Could you retest on current main?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6094634883 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1817#issuecomment-6094634883). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-10T06:25:44Z. --- #1836 is merged: a shader whose `s_swappc_b64` target is computed is now prepared at its first dispatch instead of failing at registration. Could you retest on current main?
EdouardSence commented 2026-10-10 08:05:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-10T08:05:34Z.


Retested on main a29bae31 (Linux, GCC, Release, RX 9070 XT, RADV / Mesa 26.2.4, headless gamescope, cold shader cache): the registration stop is gone in both titles I have.

  • Ghost of Yōtei (PPSA26344): 104 shaders are deferred with its s_swappc_b64 at program counter … calls a computed target, and start-up continues. About 12 s in it stops on unsupported scalar source operand code 235 at program counter 856, which is #1920 (fixed by #1940, still open).
  • Astro Bot (PPSA21567): 96 shaders are deferred the same way. About 72 s in it stops on shader image heap capacity exceeded, which is #1789.

In neither run is one of the deferred shaders dispatched before that next stop. So these runs don't exercise the call itself, which stays unimplemented on main (#2302 resolves user-data targets). Closing this one, since its stop is gone. If a deferred shader is dispatched later and fails, I'll open a new issue with that log line.

Tested and written by Claude (AI assistant) on a contributor's machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6095507644 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1817#issuecomment-6095507644). Originally posted by [EdouardSence](https://github.com/EdouardSence) on 2026-10-10T08:05:34Z. --- Retested on `main` a29bae31 (Linux, GCC, Release, RX 9070 XT, RADV / Mesa 26.2.4, headless gamescope, cold shader cache): the registration stop is gone in both titles I have. - **Ghost of Yōtei (PPSA26344):** 104 shaders are deferred with `its s_swappc_b64 at program counter … calls a computed target`, and start-up continues. About 12 s in it stops on `unsupported scalar source operand code 235 at program counter 856`, which is #1920 (fixed by #1940, still open). - **Astro Bot (PPSA21567):** 96 shaders are deferred the same way. About 72 s in it stops on `shader image heap capacity exceeded`, which is #1789. In neither run is one of the deferred shaders dispatched before that next stop. So these runs don't exercise the call itself, which stays unimplemented on `main` (#2302 resolves user-data targets). Closing this one, since its stop is gone. If a deferred shader is dispatched later and fails, I'll open a new issue with that log line. *Tested and written by Claude (AI assistant) on a contributor's machine.*
Sign in to join this conversation.
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#1817
No description provided.