Stray (PPSA02100, UE4): 402 shaders fail to prepare, title never renders past the loading screen #2749

Closed
opened 2026-10-10 12:46:17 +00:00 by tharun-37 · 5 comments
tharun-37 commented 2026-10-10 12:46:17 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tharun-37 on 2026-10-10T12:46:17Z.


Stray (PPSA02100, UE4) relinks and boots on Windows / MinGW-w64 GCC 16.2.0 / RTX 4060 Laptop GPU. It creates the window, reaches Stray | FPS: 0.00 (1), and sits there with 5.8 GiB resident - 402 of its shaders never prepare, so nothing ever renders.

Two distinct failures, from 499 log lines:

371  ShaderRecompiler: s_swappc_b64 ... calls a computed target
 28  ShaderRecompiler: shader info collection failed: packed pixel ancillary
      input has an unsupported live use (used by SelectU32)

Both look already tracked, which is why this is evidence rather than a new report:

  • the ancillary word matches #2548 and its TechnicalDebt entry ("That is exact only because every read of the word must be an extract inside one modelled field; any other read throws")
  • a computed s_swappc_b64 target matches the TechnicalDebt entry for [s_swappc_b64] and the closed precedent in #1817 (Ghost of Yotai, same class of failure)

What this adds is scale and a second title: 371 of the failures are the scalar-call form, from ~30 distinct program counters, so a fix would unblock the title rather than one shader.

Setup for reproduction:

relinker --windows eboot.bin.esbak app.exe      # 11299 NID references
# libs/ from the libs target, plus libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll
# app0/ with hk_project/, sce_sys/, contentids.json, ue4commandline.txt

tools/import_audit.py on this title is also the widest stub list I have seen - 54 stubs across 18 libraries, opening 32 system libraries that a 2D title (PPSA02929) never touches, including 9 of 12 network/online ones.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5791341525 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2749). Originally posted by [tharun-37](https://github.com/tharun-37) on 2026-10-10T12:46:17Z. --- Stray (PPSA02100, UE4) relinks and boots on Windows / MinGW-w64 GCC 16.2.0 / RTX 4060 Laptop GPU. It creates the window, reaches `Stray | FPS: 0.00 (1)`, and sits there with 5.8 GiB resident - 402 of its shaders never prepare, so nothing ever renders. Two distinct failures, from 499 log lines: ``` 371 ShaderRecompiler: s_swappc_b64 ... calls a computed target 28 ShaderRecompiler: shader info collection failed: packed pixel ancillary input has an unsupported live use (used by SelectU32) ``` Both look already tracked, which is why this is evidence rather than a new report: - the ancillary word matches #2548 and its TechnicalDebt entry ("That is exact only because every read of the word must be an extract inside one modelled field; any other read throws") - a computed `s_swappc_b64` target matches the TechnicalDebt entry for [s_swappc_b64] and the closed precedent in #1817 (Ghost of Yotai, same class of failure) What this adds is scale and a second title: 371 of the failures are the scalar-call form, from ~30 distinct program counters, so a fix would unblock the title rather than one shader. Setup for reproduction: ``` relinker --windows eboot.bin.esbak app.exe # 11299 NID references # libs/ from the libs target, plus libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll # app0/ with hk_project/, sce_sys/, contentids.json, ue4commandline.txt ``` `tools/import_audit.py` on this title is also the widest stub list I have seen - 54 stubs across 18 libraries, opening 32 system libraries that a 2D title (PPSA02929) never touches, including 9 of 12 network/online ones.
tharun-37 commented 2026-10-10 12:47:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tharun-37 on 2026-10-10T12:47:38Z.


One pointer for whoever picks this up: the user-data case of the scalar-call form was already attempted in #2302 ("resolve user-data s_swappc_b64 call targets"), which was closed without merging, and #1817 was closed as completed against it. So there is prior art here that a maintainer could look at re-reviewing rather than starting from scratch.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6097652278 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2749#issuecomment-6097652278). Originally posted by [tharun-37](https://github.com/tharun-37) on 2026-10-10T12:47:38Z. --- One pointer for whoever picks this up: the user-data case of the scalar-call form was already attempted in #2302 ("resolve user-data s_swappc_b64 call targets"), which was closed without merging, and #1817 was closed as completed against it. So there is prior art here that a maintainer could look at re-reviewing rather than starting from scratch.
fisherjoey commented 2026-10-10 17:25:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by fisherjoey on 2026-10-10T17:25:15Z.


The 28 (used by SelectU32) failures here may come from #2083 rather than #2548: its f32 NaN select adds a SelectU32 reader of the packed ancillary word. Details and an offline replay of 4 Stray shaders in #2881 (2 of 4 fail on current main, 4 of 4 with #2083 reverted).

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6100222211 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2749#issuecomment-6100222211). Originally posted by [fisherjoey](https://github.com/fisherjoey) on 2026-10-10T17:25:15Z. --- The 28 `(used by SelectU32)` failures here may come from #2083 rather than #2548: its f32 NaN select adds a SelectU32 reader of the packed ancillary word. Details and an offline replay of 4 Stray shaders in #2881 (2 of 4 fail on current `main`, 4 of 4 with #2083 reverted). AI-assisted: yes
ThatsLeo commented 2026-10-11 12:00:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ThatsLeo on 2026-10-11T12:00:56Z.


Stray (PPSA02101 v01.002) now gets past its first frame on Linux. With the set of changes below on main f1ae427b, it reaches its first interactive screen (brightness calibration), drawn correctly, and keeps presenting at about 2 FPS. It ran 5 minutes without a crash or Unreal's RenderThread watchdog.

The whole set is on ThatsLeo/AnyPS5:stray/f1ae427b-set, for reproduction only: it carries two local tmp: commits that are not proposals.

On current main (8ec0e131) it stops again before the first frame: #3279 made two of its shaders take 150 and 400 s to prepare, and the watchdog fires at about 158 s. That is #3504.

What each step unblocked

On top of f1ae427b, in the order they were needed, each with where it stopped next:

Change What it fixes Next stop
none frame 1; the render thread waits on an 80 s shader preparation, watchdog at about 164 s
MaskedSelectEliminator visits stamped by value id, failed selects reused per mask (28/78 s → 3.5/11.5 s, identical SPIR-V) the stall 49 s: storage image access to depth/stencil surface ... is not implemented
#425 (MichonGoddijn231849) depth planes as storage images 29 s: storage access to a depth surface's stencil plane is not implemented
stencil plane as an R8 storage image, on top of #425 (branch) stencil planes as storage images 27 s: color views of several array slices are unsupported (a 3D target, slices 0-64)
#1077 (alfalfa-star) layered draws into 3D color targets 44 s: emulated barycentrics after a mesh stage
tmp: draws needing emulated barycentrics after a mesh stage are skipped only devices without VK_KHR_fragment_shader_barycentric (Intel on Mesa) take this path runs; calibration screen at about 1 FPS
#2802 untracked storage surfaces compared on almost every use the first frames come about 60 s sooner
tmp: dma-buf imports first, as #2434 (999sian) does host-pointer imports lose write protection on ANV, so about 2.8 GB/s of surfaces were byte-compared about 2.07 FPS steady

Two more were in the set but are no longer needed on main, as #3279 covers them (all 41 of Stray's shaders that failed now compile):

  • the packed ancillary word kept only on helper lanes (#2881);
  • I/J kept only on helper lanes.

Left

  • Frame time. It is in StorageTexture::ProvedKeys → WaitForKeyWriters → Recorder::SyncThrough: a full wait for the GPU whenever pending GPU writes overlap a surface's DCC keys. See #3505.
  • Shaders still deferred.
    • 371 shaders defer at registration on computed s_swappc_b64 targets, as reported above. They have not stopped the title so far.
    • 13 shaders of registered type 8 are not prepared at registration.
  • Emulated barycentrics after a mesh stage throw on devices without VK_KHR_fragment_shader_barycentric. On main, 118 of the shaders Stray prepares in its first 150 s still fall back to them.

Setup: Fedora 44, GCC 16.2.1, Release, Intel Arc (Meteor Lake, Mesa 26.2.3 ANV), warm shader cache.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6108798444 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2749#issuecomment-6108798444). Originally posted by [ThatsLeo](https://github.com/ThatsLeo) on 2026-10-11T12:00:56Z. --- Stray (PPSA02101 v01.002) now gets past its first frame on Linux. With the set of changes below on `main` `f1ae427b`, it reaches its first interactive screen (brightness calibration), drawn correctly, and keeps presenting at about 2 FPS. It ran 5 minutes without a crash or Unreal's RenderThread watchdog. The whole set is on [`ThatsLeo/AnyPS5:stray/f1ae427b-set`](https://github.com/ThatsLeo/AnyPS5/tree/stray/f1ae427b-set), for reproduction only: it carries two local `tmp:` commits that are not proposals. **On current `main` (`8ec0e131`) it stops again before the first frame:** #3279 made two of its shaders take 150 and 400 s to prepare, and the watchdog fires at about 158 s. That is #3504. ### What each step unblocked On top of `f1ae427b`, in the order they were needed, each with where it stopped next: | Change | What it fixes | Next stop | |---|---|---| | none | | frame 1; the render thread waits on an 80 s shader preparation, watchdog at about 164 s | | `MaskedSelectEliminator` visits stamped by value id, failed selects reused per mask (28/78 s → 3.5/11.5 s, identical SPIR-V) | the stall | 49 s: `storage image access to depth/stencil surface ... is not implemented` | | #425 (MichonGoddijn231849) | depth planes as storage images | 29 s: `storage access to a depth surface's stencil plane is not implemented` | | stencil plane as an R8 storage image, on top of #425 ([branch](https://github.com/ThatsLeo/AnyPS5/tree/feat/agc-depth-stencil-storage)) | stencil planes as storage images | 27 s: `color views of several array slices are unsupported` (a 3D target, slices 0-64) | | #1077 (alfalfa-star) | layered draws into 3D color targets | 44 s: emulated barycentrics after a mesh stage | | `tmp:` draws needing emulated barycentrics after a mesh stage are skipped | only devices without `VK_KHR_fragment_shader_barycentric` (Intel on Mesa) take this path | runs; calibration screen at about 1 FPS | | #2802 | untracked storage surfaces compared on almost every use | the first frames come about 60 s sooner | | `tmp:` dma-buf imports first, as #2434 (999sian) does | host-pointer imports lose write protection on ANV, so about 2.8 GB/s of surfaces were byte-compared | about 2.07 FPS steady | Two more were in the set but are no longer needed on `main`, as #3279 covers them (all 41 of Stray's shaders that failed now compile): - the packed ancillary word kept only on helper lanes (#2881); - I/J kept only on helper lanes. ### Left - **Frame time.** It is in `StorageTexture::ProvedKeys` → `WaitForKeyWriters` → `Recorder::SyncThrough`: a full wait for the GPU whenever pending GPU writes overlap a surface's DCC keys. See #3505. - **Shaders still deferred.** - 371 shaders defer at registration on computed `s_swappc_b64` targets, as reported above. They have not stopped the title so far. - 13 shaders of registered type 8 are not prepared at registration. - **Emulated barycentrics after a mesh stage** throw on devices without `VK_KHR_fragment_shader_barycentric`. On `main`, 118 of the shaders Stray prepares in its first 150 s still fall back to them. Setup: Fedora 44, GCC 16.2.1, Release, Intel Arc (Meteor Lake, Mesa 26.2.3 ANV), warm shader cache. AI-assisted: yes.
xXPBSXx commented 2026-10-11 18:36:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-11T18:36:58Z.


Stray (PPSA02100) on current main a11c8f7f7, Windows 10, RTX 4080 SUPER, relinked from the decrypted eboot.bin.esbak (6 modules, 0 absent imports), one 150 s run:

  • No abort or fatal error in 150 s. In the log: 371 s_swappc_b64 ... calls a computed target lines (same count as in the description), 13 unsupported registered shader type 8 and 3 its program address is not in the shader registers; all of them say the shader is prepared when it is used. I saw no packed pixel ancillary failure on this main.
  • The shader disk cache keeps growing while it runs (totals at the end: 2481 hits, 891 misses, 891 writes; one 10 s window shows 656 misses and 322 MiB written), so shaders are being prepared at draw time, and DrawRectangle reports a rect-list draw preparing its fragment shader at draw.

What I did not check: whether anything is drawn on screen or what the FPS is (I only read the log), and Linux.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6112334774 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2749#issuecomment-6112334774). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-11T18:36:58Z. --- Stray (PPSA02100) on current `main` a11c8f7f7, Windows 10, RTX 4080 SUPER, relinked from the decrypted `eboot.bin.esbak` (6 modules, 0 absent imports), one 150 s run: - No abort or fatal error in 150 s. In the log: 371 `s_swappc_b64 ... calls a computed target` lines (same count as in the description), 13 `unsupported registered shader type 8` and 3 `its program address is not in the shader registers`; all of them say the shader is prepared when it is used. I saw no `packed pixel ancillary` failure on this `main`. - The shader disk cache keeps growing while it runs (totals at the end: 2481 hits, 891 misses, 891 writes; one 10 s window shows 656 misses and 322 MiB written), so shaders are being prepared at draw time, and `DrawRectangle` reports a rect-list draw preparing its fragment shader at draw. What I did not check: whether anything is drawn on screen or what the FPS is (I only read the log), and Linux. AI-assisted (Claude Code).
oneandonlydean commented 2026-10-14 00:08:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T00:08:27Z.


Closing: on current main Stray presents frames past the loading screen (runs in #1409), and the computed s_swappc_b64 shaders are prepared when used. Later stops go in the Stray bring-up discussion (#2461). If it stays on the loading screen on current main, comment here.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6157866797 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/2749#issuecomment-6157866797). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T00:08:27Z. --- Closing: on current main Stray presents frames past the loading screen (runs in #1409), and the computed `s_swappc_b64` shaders are prepared when used. Later stops go in the Stray bring-up discussion (#2461). If it stays on the loading screen on current main, comment here.
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#2749
No description provided.