[GAME STATUS]: Ghost of Yotei: Fatal Error 321 in computer shader 0xc37d0172087dc1a6 #2204

Closed
opened 2026-11-26 10:16:46 +00:00 by github-bot · 16 comments
Owner

@⁠Ben-Dash on GitHub · 2026-11-11 01:47 UTC · original

Game title

Ghost of Yotei (v2.002.000)

Game ID / serial

PPSA26344

KytyPS5 version

ver=0.3.0 git=7d4e0d9

Compatibility status

Logo

Last working build / first broken build

No response

Result details

Ghost of Yōtei (PPSA26344, v02.002.000): fatal "buffer descriptor is not a valid runtime value" in compute shader 0xc37d0172087dc1a6 (ResourceTracking.cpp:605), exit code 321

Build: KytyPS5 official 2026-11-10-7d4e0d9 (same result on 2026-11-10-782a85c)

  • Follow-up to #1599. The stack overflow in the 309-block compute shader no longer happens on these builds: 0xe4a433b4298b813e finishes SPIR-V emit (271,413 words, 16 ms), and so does a 433-block shader (0x38d50151933e3321, 387-410K words, compiled 4 times with slightly different sizes).
  • The game now renders at ~30 FPS with dips to 1-5 FPS, then the emulator stops itself with exit code 321 (not -1073741571). Shader counter at exit: VS 19 | PS 46 | CS 157.
  • Error text: shader resource tracking: hash=0xc37d0172087dc1a6 stage=compute pc=0x00000980 buffer descriptor is not a valid runtime value; GPU-selected access requires a scalar, raw 8/16-bit, raw DWORD x1/x2/x3/x4, or formatted X load in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\ir\passes\ResourceTracking.cpp:605
  • Shader: 18 CFG blocks (26 after structurize), 1 loop, 27 IR blocks; fails in resource tracking after IR translation. The instruction at pc 0x980 is BUFFER_ATOMIC_ADD v0, v0, s20, 0 (glc=0, result unused). In the IR dump the descriptor operands %1652-%1655 are Phis merging the values from before the loop (block $6: %738-%741) with the loop back-edge (block $17: %1617-%1620), feeding GetBufferResource %1680 -> BufferAtomicIAdd32.
  • Other BUFFER_ATOMIC_ADD / BUFFER_ATOMIC_OR instructions with plain descriptors (for example s60 at pc 0x508 and s4 at pc 0xa20 in other shaders) were translated fine earlier in the same run.
  • Reproducible: both runs fail on the same compute shader after 157 compute shaders finished (the 158th fails). VS/PS counts differ (VS 21 / PS 57 on 782a85c, VS 19 / PS 46 on 7d4e0d9).
  • Not memory or compile speed: overlay mid-run showed pipeline compile avg 2.3 ms / peak 14.1 ms, shader recompiler avg 1.7 ms / peak 22.5 ms, Vulkan heap 3.50/7.05 GB, page table CPU 8521 / GPU 8073 of 16384. The 1-5 FPS dips line up with GPU waits (last hitch 1367 ms, GPU wait 2652 ms), not compilation, which is probably due to hardware limitations.

Steps to reproduce the result

  1. Open KytyPS5
  2. Boot Game
  3. Watch logos
  4. Crash

Expected behavior

The game should successfully boot to the main menu.

OS

Windows 11 Pro 25H2 (Build 26200.9711)

CPU

AMD Ryzen 9700x

GPU

NVIDIA Geforce 2070 Super (Driver Version 621.01)

RAM / VRAM

32 GB DDR5 RAM / 8 GB VRAM

Log file upload

Error321ShaderCompLogs - Ghost_Of_Yotei - November_10th_2026.zip

Zip file containing the _kyty.txt file and the main command line .txt file.
VirusTotal Hash for anyone who doesn't trust me: e5f50ae4a39d48a0c7267fa54b89e791152c4d15d2fc2569f534c8a804517175

Screenshots/video

Screenshot 2026-11-10 201231

A screenshot of the resource monitor in game.

Extra notes

AMD CPU patch turned on
Windows SysV red zone crash protection turned on
Screen Resolution: 2560x1440
Present Mode: Fifo
Vblank Frequency: 60
GPU: 2070 Super
Enable Readback turned on
Enable Tiled Readback turned on
Enable Storage Readback turned on
Enable Tessellation Support turned on
Enable Occlusion Queries turned on
Enable HDR Display Support turned on
Cache Shaders turned on
Relaxed Shader float math turned off
PS5 Pro Mode turned off
Network Connection turned off
Emulate PSN turned off
Accurate Texture Synchronization turned on

**@⁠Ben-Dash** on GitHub · 2026-11-11 01:47 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204) ### Game title Ghost of Yotei (v2.002.000) ### Game ID / serial PPSA26344 ### KytyPS5 version ver=0.3.0 git=7d4e0d9 ### Compatibility status Logo ### Last working build / first broken build _No response_ ### Result details Ghost of Yōtei (PPSA26344, v02.002.000): fatal "buffer descriptor is not a valid runtime value" in compute shader 0xc37d0172087dc1a6 (ResourceTracking.cpp:605), exit code 321 Build: KytyPS5 official 2026-11-10-7d4e0d9 (same result on 2026-11-10-782a85c) - Follow-up to #1599. The stack overflow in the 309-block compute shader no longer happens on these builds: 0xe4a433b4298b813e finishes SPIR-V emit (271,413 words, 16 ms), and so does a 433-block shader (0x38d50151933e3321, 387-410K words, compiled 4 times with slightly different sizes). - The game now renders at ~30 FPS with dips to 1-5 FPS, then the emulator stops itself with exit code 321 (not -1073741571). Shader counter at exit: VS 19 | PS 46 | CS 157. - Error text: shader resource tracking: hash=0xc37d0172087dc1a6 stage=compute pc=0x00000980 buffer descriptor is not a valid runtime value; GPU-selected access requires a scalar, raw 8/16-bit, raw DWORD x1/x2/x3/x4, or formatted X load in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\ir\passes\ResourceTracking.cpp:605 - Shader: 18 CFG blocks (26 after structurize), 1 loop, 27 IR blocks; fails in resource tracking after IR translation. The instruction at pc 0x980 is BUFFER_ATOMIC_ADD v0, v0, s20, 0 (glc=0, result unused). In the IR dump the descriptor operands %1652-%1655 are Phis merging the values from before the loop (block $6: %738-%741) with the loop back-edge (block $17: %1617-%1620), feeding GetBufferResource %1680 -> BufferAtomicIAdd32. - Other BUFFER_ATOMIC_ADD / BUFFER_ATOMIC_OR instructions with plain descriptors (for example s60 at pc 0x508 and s4 at pc 0xa20 in other shaders) were translated fine earlier in the same run. - Reproducible: both runs fail on the same compute shader after 157 compute shaders finished (the 158th fails). VS/PS counts differ (VS 21 / PS 57 on 782a85c, VS 19 / PS 46 on 7d4e0d9). - Not memory or compile speed: overlay mid-run showed pipeline compile avg 2.3 ms / peak 14.1 ms, shader recompiler avg 1.7 ms / peak 22.5 ms, Vulkan heap 3.50/7.05 GB, page table CPU 8521 / GPU 8073 of 16384. The 1-5 FPS dips line up with GPU waits (last hitch 1367 ms, GPU wait 2652 ms), not compilation, which is probably due to hardware limitations. ### Steps to reproduce the result 1. Open KytyPS5 2. Boot Game 3. Watch logos 4. Crash ### Expected behavior The game should successfully boot to the main menu. ### OS Windows 11 Pro 25H2 (Build 26200.9711) ### CPU AMD Ryzen 9700x ### GPU NVIDIA Geforce 2070 Super (Driver Version 621.01) ### RAM / VRAM 32 GB DDR5 RAM / 8 GB VRAM ### Log file upload [Error321ShaderCompLogs - Ghost_Of_Yotei - November_10th_2026.zip](https://github.com/user-attachments/files/34665820/Error321ShaderCompLogs.-.Ghost_Of_Yotei.-.November_10th_2026.zip) Zip file containing the _kyty.txt file and the main command line .txt file. VirusTotal Hash for anyone who doesn't trust me: e5f50ae4a39d48a0c7267fa54b89e791152c4d15d2fc2569f534c8a804517175 ### Screenshots/video <img width="1466" height="742" alt="Screenshot 2026-11-10 201231" src="https://github.com/user-attachments/assets/21ab2d4b-a918-44fa-a049-d1b0a746cebf" /> A screenshot of the resource monitor in game. ### Extra notes AMD CPU patch turned on Windows SysV red zone crash protection turned on Screen Resolution: 2560x1440 Present Mode: Fifo Vblank Frequency: 60 GPU: 2070 Super Enable Readback turned on Enable Tiled Readback turned on Enable Storage Readback turned on Enable Tessellation Support turned on Enable Occlusion Queries turned on Enable HDR Display Support turned on Cache Shaders turned on Relaxed Shader float math turned off PS5 Pro Mode turned off Network Connection turned off Emulate PSN turned off Accurate Texture Synchronization turned on
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:16:46 +00:00
Author
Owner

@⁠Ben-Dash on GitHub · 2026-11-11 01:52 UTC · original

By the way, these are the last couple of lines from the _kyty.txt if you don't feel like downloading the full zip

Block $19 pc=0x0000094c..0x00000958
%1652 = Phi [%738, $6], [%1617, $17] (U32; uses=1)
%1653 = Phi [%739, $6], [%1618, $17] (U32; uses=1)
%1654 = Phi [%740, $6], [%1619, $17] (U32; uses=1)
%1655 = Phi [%741, $6], [%1620, $17] (U32; uses=1)
%1656 = Phi [%764, $6], [%1641, $17] (U32; uses=1)
%1657 = IEqual32 0x00000006, %1656 (U1; uses=1)
%1658 = LogicalAnd %611, %1657 (U1; uses=5)
%1659 = Ballot %1658 (U32x4; uses=1)
%1660 = CompositeExtractU32x4 %1659, 0x00000000 (U32; uses=2)
%1661 = ConditionRef %1658 (U1; uses=1)
Reference %1661 (Void; uses=0)
Block $20 pc=0x00000958..0x00000970
%1663 = LaneId (U32; uses=2)
%1664 = BitwiseAnd32 %1663, 0x0000001f (U32; uses=1)
%1665 = BitFieldInsert 0x00000000, 0xffffffff, 0x00000000, %1664 (U32; uses=1)
%1666 = UGreaterThanEqual32 %1663, 0x00000020 (U1; uses=1)
%1667 = SelectU32 %1666, 0xffffffff, %1665 (U32; uses=1)
%1668 = BitwiseAnd32 %1660, %1667 (U32; uses=1)
%1669 = BitCount32 %1668 (U32; uses=1)
%1670 = SelectU32 %1658, %1669, %25 (U32; uses=2)
%1671 = BitFieldSExtract %1670, 0x00000000, 0x00000018 (U32; uses=2)
%1672 = SelectU32 %1658, %1671, %1670 (U32; uses=1)
%1673 = IEqual32 %1671, 0x00000000 (U1; uses=1)
%1674 = LogicalAnd %1658, %1673 (U1; uses=3)
%1675 = ConditionRef %1674 (U1; uses=1)
Reference %1675 (Void; uses=0)
Block $21 pc=0x00000970..0x00000988
%1677 = BitCount32 %1660 (U32; uses=1)
%1678 = BitFieldSExtract %1677, 0x00000000, 0x00000018 (U32; uses=1)
%1679 = SelectU32 %1674, %1678, %1672 (U32; uses=1)
%1680 = GetBufferResource %1655, %1654, %1653, %1652 (BufferResource; uses=1)
%1681 = BufferAtomicIAdd32 %1680, 0x00000000, 0x00000000, 0x00000000, %1679, %1674 (U32; uses=0)
Block $22 pc=0x00000000..0x00000000
Block $23 pc=0x00000000..0x00000000
Block $24 pc=0x00000000..0x00000000
Block $25 pc=0x00000000..0x00000000
Block $26 pc=0x00000988..0x0000098c
--- Build ---
Official build KytyPS5-2026-11-10-7d4e0d9
--- Error ---
shader resource tracking: hash=0xc37d0172087dc1a6 stage=compute pc=0x00000980 buffer descriptor is not a valid runtime value; GPU-selected access requires a scalar, raw 8/16-bit, raw DWORD x1/x2/x3/x4, or formatted X load in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\ir\passes\ResourceTracking.cpp:605

**@⁠Ben-Dash** on GitHub · 2026-11-11 01:52 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-6784646672) By the way, these are the last couple of lines from the _kyty.txt if you don't feel like downloading the full zip Block $19 pc=0x0000094c..0x00000958 %1652 = Phi [%738, $6], [%1617, $17] (U32; uses=1) %1653 = Phi [%739, $6], [%1618, $17] (U32; uses=1) %1654 = Phi [%740, $6], [%1619, $17] (U32; uses=1) %1655 = Phi [%741, $6], [%1620, $17] (U32; uses=1) %1656 = Phi [%764, $6], [%1641, $17] (U32; uses=1) %1657 = IEqual32 0x00000006, %1656 (U1; uses=1) %1658 = LogicalAnd %611, %1657 (U1; uses=5) %1659 = Ballot %1658 (U32x4; uses=1) %1660 = CompositeExtractU32x4 %1659, 0x00000000 (U32; uses=2) %1661 = ConditionRef %1658 (U1; uses=1) Reference %1661 (Void; uses=0) Block $20 pc=0x00000958..0x00000970 %1663 = LaneId (U32; uses=2) %1664 = BitwiseAnd32 %1663, 0x0000001f (U32; uses=1) %1665 = BitFieldInsert 0x00000000, 0xffffffff, 0x00000000, %1664 (U32; uses=1) %1666 = UGreaterThanEqual32 %1663, 0x00000020 (U1; uses=1) %1667 = SelectU32 %1666, 0xffffffff, %1665 (U32; uses=1) %1668 = BitwiseAnd32 %1660, %1667 (U32; uses=1) %1669 = BitCount32 %1668 (U32; uses=1) %1670 = SelectU32 %1658, %1669, %25 (U32; uses=2) %1671 = BitFieldSExtract %1670, 0x00000000, 0x00000018 (U32; uses=2) %1672 = SelectU32 %1658, %1671, %1670 (U32; uses=1) %1673 = IEqual32 %1671, 0x00000000 (U1; uses=1) %1674 = LogicalAnd %1658, %1673 (U1; uses=3) %1675 = ConditionRef %1674 (U1; uses=1) Reference %1675 (Void; uses=0) Block $21 pc=0x00000970..0x00000988 %1677 = BitCount32 %1660 (U32; uses=1) %1678 = BitFieldSExtract %1677, 0x00000000, 0x00000018 (U32; uses=1) %1679 = SelectU32 %1674, %1678, %1672 (U32; uses=1) %1680 = GetBufferResource %1655, %1654, %1653, %1652 (BufferResource; uses=1) %1681 = BufferAtomicIAdd32 %1680, 0x00000000, 0x00000000, 0x00000000, %1679, %1674 (U32; uses=0) Block $22 pc=0x00000000..0x00000000 Block $23 pc=0x00000000..0x00000000 Block $24 pc=0x00000000..0x00000000 Block $25 pc=0x00000000..0x00000000 Block $26 pc=0x00000988..0x0000098c --- Build --- Official build KytyPS5-2026-11-10-7d4e0d9 --- Error --- shader resource tracking: hash=0xc37d0172087dc1a6 stage=compute pc=0x00000980 buffer descriptor is not a valid runtime value; GPU-selected access requires a scalar, raw 8/16-bit, raw DWORD x1/x2/x3/x4, or formatted X load in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\ir\passes\ResourceTracking.cpp:605
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-11 12:38 UTC · original

@⁠Ben-Dash Thanks for the detailed report. This stop can be reproduced without running the game: recompiling a dump of the same compute shader (0xc37d0172087dc1a6, from my own copy of the game) with current main (bc934ef) ends with the same message at pc 0x980, so it does not depend on your GPU.

What the shader does there: it loads two different buffer descriptors into the same register s20, one before the loop (S_LOAD_DWORDX4 s20, s0 at pc 0x8c, offset 6476) and one on a conditional path inside the loop (pc 0x660, offset 6492). The BUFFER_ATOMIC_ADD at pc 0x684 comes right after the second load and translates. The one at pc 0x980 comes after the loop, so its descriptor is whichever of the two was loaded last. In the IR those are the Phis you quoted (%1652 to %1655): followed back through the loop's other Phis, each of them ends in exactly those two loads. The recompiler accepts a descriptor of that kind for loads only, not for an atomic add, hence the message. So the descriptor is not computed from GPU data here: it is one of two descriptors that both sit in the shader's resource table, and a branch on the GPU decides which of them is used.

#1939 is an open PR for this message (it lets BufferAtomicIAdd32 take the path that loads already use). Its description says it was not tested in the game, and its diff does not apply to current main any more (SpirvEmitter.cpp and both test files changed since). The recompiler already has a planner for a descriptor that is one of a few known ones, picked by a Phi or a select (TryMakeFiniteDescriptor); it takes image and sampler descriptors only, not buffer descriptors.

**@⁠Nawid3333** on GitHub · 2026-11-11 12:38 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-6796039153) @⁠Ben-Dash Thanks for the detailed report. This stop can be reproduced without running the game: recompiling a dump of the same compute shader (`0xc37d0172087dc1a6`, from my own copy of the game) with current main (bc934ef) ends with the same message at pc 0x980, so it does not depend on your GPU. What the shader does there: it loads two different buffer descriptors into the same register `s20`, one before the loop (`S_LOAD_DWORDX4 s20, s0` at pc 0x8c, offset 6476) and one on a conditional path inside the loop (pc 0x660, offset 6492). The `BUFFER_ATOMIC_ADD` at pc 0x684 comes right after the second load and translates. The one at pc 0x980 comes after the loop, so its descriptor is whichever of the two was loaded last. In the IR those are the Phis you quoted (`%1652` to `%1655`): followed back through the loop's other Phis, each of them ends in exactly those two loads. The recompiler accepts a descriptor of that kind for loads only, not for an atomic add, hence the message. So the descriptor is not computed from GPU data here: it is one of two descriptors that both sit in the shader's resource table, and a branch on the GPU decides which of them is used. #1939 is an open PR for this message (it lets `BufferAtomicIAdd32` take the path that loads already use). Its description says it was not tested in the game, and its diff does not apply to current main any more (`SpirvEmitter.cpp` and both test files changed since). The recompiler already has a planner for a descriptor that is one of a few known ones, picked by a Phi or a select (`TryMakeFiniteDescriptor`); it takes image and sampler descriptors only, not buffer descriptors.
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-11 18:33 UTC · original

@⁠Ben-Dash The fix for this stop is in #2219: resource tracking now binds both buffers when the atomic's descriptor is chosen by a branch, and the atomic adds into the one the branch picked.

On my RX 9070 XT this GPU first needs open PR #1758 for a stop that comes earlier on main, so I compared two builds that both carry #1758: with the change, Ghost of Yōtei translates shader 0xc37d0172087dc1a6 and keeps running; without it, it stops with the message from your log.

Your log shows that main already gets to this shader on your system, so the branch alone should be enough there. If you want to try it, the Windows build of the branch is the KytyPS5-Windows-x64 artifact of this CI run (GitHub asks you to sign in to download it). A _kyty.txt from a run that gets past this shader would confirm it on your system.

**@⁠Nawid3333** on GitHub · 2026-11-11 18:33 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-6804119700) @⁠Ben-Dash The fix for this stop is in #2219: resource tracking now binds both buffers when the atomic's descriptor is chosen by a branch, and the atomic adds into the one the branch picked. On my RX 9070 XT this GPU first needs open PR #1758 for a stop that comes earlier on main, so I compared two builds that both carry #1758: with the change, Ghost of Yōtei translates shader `0xc37d0172087dc1a6` and keeps running; without it, it stops with the message from your log. Your log shows that main already gets to this shader on your system, so the branch alone should be enough there. If you want to try it, the Windows build of the branch is the `KytyPS5-Windows-x64` artifact of [this CI run](https://github.com/Nawid3333/KytyPS5/actions/runs/43051453754) (GitHub asks you to sign in to download it). A `_kyty.txt` from a run that gets past this shader would confirm it on your system.
Author
Owner

@⁠Ben-Dash on GitHub · 2026-11-11 22:57 UTC · original · edited 2026-11-12 02:24 UTC

@⁠Ben-Dash The fix for this stop is in #2219: resource tracking now binds both buffers when the atomic's descriptor is chosen by a branch, and the atomic adds into the one the branch picked.

On my RX 9070 XT this GPU first needs open PR #1758 for a stop that comes earlier on main, so I compared two builds that both carry #1758: with the change, Ghost of Yōtei translates shader 0xc37d0172087dc1a6 and keeps running; without it, it stops with the message from your log.

Your log shows that main already gets to this shader on your system, so the branch alone should be enough there. If you want to try it, the Windows build of the branch is the KytyPS5-Windows-x64 artifact of this CI run (GitHub asks you to sign in to download it). A _kyty.txt from a run that gets past this shader would confirm it on your system.

Github seems to be acting up and isn't letting me access the build from that run, probably because the run got canceled early. If you feel like rerunning it so it allows me to download it/test it, that would be great. Otherwise I'll wait for @⁠Nmzik to merge this fix.

Edit - Was able to get the branched build running, see comment below for more details

**@⁠Ben-Dash** on GitHub · 2026-11-11 22:57 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-6809125410) · edited 2026-11-12 02:24 UTC > [@⁠Ben-Dash](https://github.com/Ben-Dash) The fix for this stop is in [#2219](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/2219): resource tracking now binds both buffers when the atomic's descriptor is chosen by a branch, and the atomic adds into the one the branch picked. > > On my RX 9070 XT this GPU first needs open PR [#1758](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1758) for a stop that comes earlier on main, so I compared two builds that both carry [#1758](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1758): with the change, Ghost of Yōtei translates shader `0xc37d0172087dc1a6` and keeps running; without it, it stops with the message from your log. > > Your log shows that main already gets to this shader on your system, so the branch alone should be enough there. If you want to try it, the Windows build of the branch is the `KytyPS5-Windows-x64` artifact of [this CI run](https://github.com/Nawid3333/KytyPS5/actions/runs/43051453754) (GitHub asks you to sign in to download it). A `_kyty.txt` from a run that gets past this shader would confirm it on your system. Github seems to be acting up and isn't letting me access the build from that run, probably because the run got canceled early. If you feel like rerunning it so it allows me to download it/test it, that would be great. Otherwise I'll wait for @⁠Nmzik to merge this fix. Edit - Was able to get the branched build running, see comment below for more details
Author
Owner

@⁠Ben-Dash on GitHub · 2026-11-12 02:23 UTC · original

@⁠Ben-Dash The fix for this stop is in #2219: resource tracking now binds both buffers when the atomic's descriptor is chosen by a branch, and the atomic adds into the one the branch picked.

On my RX 9070 XT this GPU first needs open PR #1758 for a stop that comes earlier on main, so I compared two builds that both carry #1758: with the change, Ghost of Yōtei translates shader 0xc37d0172087dc1a6 and keeps running; without it, it stops with the message from your log.

Your log shows that main already gets to this shader on your system, so the branch alone should be enough there. If you want to try it, the Windows build of the branch is the KytyPS5-Windows-x64 artifact of this CI run (GitHub asks you to sign in to download it). A _kyty.txt from a run that gets past this shader would confirm it on your system.

So a bit of an update. Your fixed branch worked, as the shader comp gets past that specfic issue. However it seems a new issue has arisen "image heaps exceed 65536 resident images at imageHeap.cpp:389", after the game compiles a bunch of shaders as shown in the attached log. I believe this is the evidence you need to show that your fix works, and if the branch gets merged, ill make a new issue regarding the resident images issue.

GhostOfYotei - ShaderCrashTest2 - November 11th 2026.txt

**@⁠Ben-Dash** on GitHub · 2026-11-12 02:23 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-6812518702) > [@⁠Ben-Dash](https://github.com/Ben-Dash) The fix for this stop is in [#2219](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/2219): resource tracking now binds both buffers when the atomic's descriptor is chosen by a branch, and the atomic adds into the one the branch picked. > > On my RX 9070 XT this GPU first needs open PR [#1758](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1758) for a stop that comes earlier on main, so I compared two builds that both carry [#1758](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1758): with the change, Ghost of Yōtei translates shader `0xc37d0172087dc1a6` and keeps running; without it, it stops with the message from your log. > > Your log shows that main already gets to this shader on your system, so the branch alone should be enough there. If you want to try it, the Windows build of the branch is the `KytyPS5-Windows-x64` artifact of [this CI run](https://github.com/Nawid3333/KytyPS5/actions/runs/43051453754) (GitHub asks you to sign in to download it). A `_kyty.txt` from a run that gets past this shader would confirm it on your system. So a bit of an update. Your fixed branch worked, as the shader comp gets past that specfic issue. However it seems a new issue has arisen "image heaps exceed 65536 resident images at imageHeap.cpp:389", after the game compiles a bunch of shaders as shown in the attached log. I believe this is the evidence you need to show that your fix works, and if the branch gets merged, ill make a new issue regarding the resident images issue. [GhostOfYotei - ShaderCrashTest2 - November 11th 2026.txt](https://github.com/user-attachments/files/34723574/GhostOfYotei.-.ShaderCrashTest2.-.November.11th.2026.txt)
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-12 03:06 UTC · original

Ok keep the issues coming so i always have something to do when i have time and it gives me specific leads with the logs i can target and fix so that is a great help

**@⁠Nawid3333** on GitHub · 2026-11-12 03:06 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-6813173682) Ok keep the issues coming so i always have something to do when i have time and it gives me specific leads with the logs i can target and fix so that is a great help
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-12 04:45 UTC · original

@⁠Ben-Dash That log is the confirmation #2219 needed; I added it there.

The new stop, image heaps exceed 65536 resident images (imageHeap.cpp:389), is what my open PR #2090 is about. The image heap keeps one element per view and descriptor, and Ghost of Yōtei reads its descriptor tables through several views and through copies of the same table, so at that stop the heap held 65535 elements for only 33822 distinct (profile, kind, descriptor) keys. With #2090, views with the same profile share their elements. On my RX 9070 XT (an older main with the other PRs the game needed then) it kept loading past that point, and the heap stayed below 40960 elements.

If you want to try it: the KytyPS5-Windows-x64 artifact of this CI run is main bc934ef with #2219 and #2090 (GitHub asks you to sign in to download it). A _kyty.txt from a run with it would show whether your run gets past the heap limit.

**@⁠Nawid3333** on GitHub · 2026-11-12 04:45 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-6814794093) @⁠Ben-Dash That log is the confirmation #2219 needed; I added it there. The new stop, `image heaps exceed 65536 resident images` (`imageHeap.cpp:389`), is what my open PR #2090 is about. The image heap keeps one element per view and descriptor, and Ghost of Yōtei reads its descriptor tables through several views and through copies of the same table, so at that stop the heap held 65535 elements for only 33822 distinct (profile, kind, descriptor) keys. With #2090, views with the same profile share their elements. On my RX 9070 XT (an older main with the other PRs the game needed then) it kept loading past that point, and the heap stayed below 40960 elements. If you want to try it: the `KytyPS5-Windows-x64` artifact of [this CI run](https://github.com/Nawid3333/KytyPS5/actions/runs/43150025508) is main bc934ef with #2219 and #2090 (GitHub asks you to sign in to download it). A `_kyty.txt` from a run with it would show whether your run gets past the heap limit.
Author
Owner

@⁠Ben-Dash on GitHub · 2026-11-12 23:03 UTC · original

@⁠Ben-Dash That log is the confirmation #2219 needed; I added it there.

The new stop, image heaps exceed 65536 resident images (imageHeap.cpp:389), is what my open PR #2090 is about. The image heap keeps one element per view and descriptor, and Ghost of Yōtei reads its descriptor tables through several views and through copies of the same table, so at that stop the heap held 65535 elements for only 33822 distinct (profile, kind, descriptor) keys. With #2090, views with the same profile share their elements. On my RX 9070 XT (an older main with the other PRs the game needed then) it kept loading past that point, and the heap stayed below 40960 elements.

If you want to try it: the KytyPS5-Windows-x64 artifact of this CI run is main bc934ef with #2219 and #2090 (GitHub asks you to sign in to download it). A _kyty.txt from a run with it would show whether your run gets past the heap limit.

Good news, your PR #2090 fixes the issue, and the limit crash does not occur. I'm not going to bother with testing any more until the fixes get merged, as I feel its important to make sure the main branch keeps sync so people can verify my tests. Great work so far.

**@⁠Ben-Dash** on GitHub · 2026-11-12 23:03 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-6838397101) > [@⁠Ben-Dash](https://github.com/Ben-Dash) That log is the confirmation [#2219](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/2219) needed; I added it there. > > The new stop, `image heaps exceed 65536 resident images` (`imageHeap.cpp:389`), is what my open PR [#2090](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/2090) is about. The image heap keeps one element per view and descriptor, and Ghost of Yōtei reads its descriptor tables through several views and through copies of the same table, so at that stop the heap held 65535 elements for only 33822 distinct (profile, kind, descriptor) keys. With [#2090](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/2090), views with the same profile share their elements. On my RX 9070 XT (an older main with the other PRs the game needed then) it kept loading past that point, and the heap stayed below 40960 elements. > > If you want to try it: the `KytyPS5-Windows-x64` artifact of [this CI run](https://github.com/Nawid3333/KytyPS5/actions/runs/43150025508) is main [bc934ef](https://github.com/KytyPS5/KytyPS5/commit/bc934ef03410b760fbf8e49db1d79485e7e5f887) with [#2219](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/2219) and [#2090](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/2090) (GitHub asks you to sign in to download it). A `_kyty.txt` from a run with it would show whether your run gets past the heap limit. Good news, your PR #2090 fixes the issue, and the limit crash does not occur. I'm not going to bother with testing any more until the fixes get merged, as I feel its important to make sure the main branch keeps sync so people can verify my tests. Great work so far.
Author
Owner

@⁠yuca-a on GitHub · 2026-11-14 00:26 UTC · original

Another data point for Ghost of Yōtei, on 01.008.000 and an NVIDIA GPU (RTX 5070, driver 621.14, Core Ultra 7 265F, Windows 11). Three findings:

1. The endless loading spinner is an undrawn error dialog (missing base entitlement)

On official 2026-11-12-58ca8d1 with --shader-cache --emulate-psn, the game never gets past the first spinner and reads only ~0.17 GB. Its GameState thread finishes normally (joined by the main thread at ~1.4 s). Then the main thread calls sceNpEntitlementAccessGetAddcontEntitlementInfo for these labels (logged with a local build), and Kyty returns NO_ENTITLEMENT for all of them:

GHOST2APP0000000, GHOST2BASE000000, GHOST2LEGENDS000, GHOST2DDE0000000, GHOST2SAPPORO000, GHOST2PREORDER00, GHOST2COLLECTORS, GHOST2DISC000000, GHOST2BASEME0000

The game then calls sceMsgDialogOpen with a user message. Read from guest memory, it says "Unable to launch: missing base entitlement. Please contact PlayStation Support." Kyty doesn't draw the dialog, so only the spinner is visible.

Workaround: --addcont GHOST2BASE000000 (license only). With it, no dialog opens and the game keeps loading. The content-ID suffix GHOST2SHIP000000 is not accepted.

Suggestions:

  • Report a running game's base entitlement as owned (a real console always holds it).
  • Log or draw sceMsgDialogOpen user messages, so errors like this show up.

2. Official 58ca8d1 + workaround: stops at 0xc37d0172087dc1a6 (this issue)

Same stop as in the original report: shader resource tracking: hash=0xc37d0172087dc1a6 stage=compute pc=0x00000980 buffer descriptor is not a valid runtime value. On 01.008.000 it gets there after frame ~944.

Before that there are multi-minute stalls. The main thread spins in guest code on a GPU fence (counter at 0x2000000000 = 855, waiting for 856), while one Kyty thread runs at 100% inside nvgpucomp64.dll, NVIDIA's pipeline compiler. These clear up by themselves after a few minutes.

3. 58ca8d1 + #2219 + #2090 + #2230 (local build): NVIDIA driver reset (device lost)

  • #2219 fixes the stop above, and the image-heap stop doesn't appear.
  • The game gets much further: VS 197 | PS 183 | CS 569, ~6 GB read, ~15 GB RAM, frame ~1700.
  • Then the NVIDIA driver resets (nvlddmkm event 153 at the same second, TdrDelay already 10 s), and Kyty stops with:
Not implemented (result != vk::Result::eSuccess) in src/graphics/host_gpu/renderer/masterSemaphore.cpp:54

It's reproducible: on a second run with a warm pipeline cache it happens after ~90 s (frame ~1092, ~6 GB read). Since #2219/#2090 were tested on an RX 9070 XT, this may be NVIDIA-specific: one GPU job that doesn't finish within 10 s (possibly a shader that never terminates).

Also seen: unresolved NpSessionSignaling imports aBuX0PX-T7I, r8mVMwlafF8, OTilStjd9L8 are called, but returning 0x8055a02a from them changes nothing.

Happy to run a test build or capture anything specific.

Investigated with Claude Code (AI); logs and test runs from my PC.

**@⁠yuca-a** on GitHub · 2026-11-14 00:26 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-6868458251) Another data point for Ghost of Yōtei, on **01.008.000** and an **NVIDIA** GPU (RTX 5070, driver 621.14, Core Ultra 7 265F, Windows 11). Three findings: ### 1. The endless loading spinner is an undrawn error dialog (missing base entitlement) On official 2026-11-12-58ca8d1 with `--shader-cache --emulate-psn`, the game never gets past the first spinner and reads only ~0.17 GB. Its `GameState` thread finishes normally (joined by the main thread at ~1.4 s). Then the main thread calls `sceNpEntitlementAccessGetAddcontEntitlementInfo` for these labels (logged with a local build), and Kyty returns `NO_ENTITLEMENT` for all of them: `GHOST2APP0000000`, `GHOST2BASE000000`, `GHOST2LEGENDS000`, `GHOST2DDE0000000`, `GHOST2SAPPORO000`, `GHOST2PREORDER00`, `GHOST2COLLECTORS`, `GHOST2DISC000000`, `GHOST2BASEME0000` The game then calls `sceMsgDialogOpen` with a user message. Read from guest memory, it says *"Unable to launch: missing base entitlement. Please contact PlayStation Support."* Kyty doesn't draw the dialog, so only the spinner is visible. **Workaround:** `--addcont GHOST2BASE000000` (license only). With it, no dialog opens and the game keeps loading. The content-ID suffix `GHOST2SHIP000000` is not accepted. Suggestions: - Report a running game's base entitlement as owned (a real console always holds it). - Log or draw `sceMsgDialogOpen` user messages, so errors like this show up. ### 2. Official 58ca8d1 + workaround: stops at `0xc37d0172087dc1a6` (this issue) Same stop as in the original report: `shader resource tracking: hash=0xc37d0172087dc1a6 stage=compute pc=0x00000980 buffer descriptor is not a valid runtime value`. On 01.008.000 it gets there after frame ~944. Before that there are multi-minute stalls. The main thread spins in guest code on a GPU fence (counter at `0x2000000000` = 855, waiting for 856), while one Kyty thread runs at 100% inside `nvgpucomp64.dll`, NVIDIA's pipeline compiler. These clear up by themselves after a few minutes. ### 3. 58ca8d1 + #2219 + #2090 + #2230 (local build): NVIDIA driver reset (device lost) - #2219 fixes the stop above, and the image-heap stop doesn't appear. - The game gets much further: VS 197 | PS 183 | CS 569, ~6 GB read, ~15 GB RAM, frame ~1700. - Then the NVIDIA driver resets (`nvlddmkm` event 153 at the same second, TdrDelay already 10 s), and Kyty stops with: ``` Not implemented (result != vk::Result::eSuccess) in src/graphics/host_gpu/renderer/masterSemaphore.cpp:54 ``` It's reproducible: on a second run with a warm pipeline cache it happens after ~90 s (frame ~1092, ~6 GB read). Since #2219/#2090 were tested on an RX 9070 XT, this may be NVIDIA-specific: one GPU job that doesn't finish within 10 s (possibly a shader that never terminates). Also seen: unresolved NpSessionSignaling imports `aBuX0PX-T7I`, `r8mVMwlafF8`, `OTilStjd9L8` are called, but returning `0x8055a02a` from them changes nothing. Happy to run a test build or capture anything specific. _Investigated with Claude Code (AI); logs and test runs from my PC._
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-14 01:58 UTC · original

Good to hear i might have some test builds ready in the coming days so testers would help tremendously

Thank you

**@⁠Nawid3333** on GitHub · 2026-11-14 01:58 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-6869799152) Good to hear i might have some test builds ready in the coming days so testers would help tremendously Thank you
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-14 15:02 UTC · original

@⁠yuca-a Thanks for the detailed report and for offering to test! I also hit a device loss in Ghost of Yōtei on an RX 9070 XT with a lab build, so it is probably not specific to NVIDIA.

Here is a test build for it: Windows build (artifact KytyPS5-Windows-x64). It is main 3e226bf plus #2219, #2090 and #2230 (the same three you used), plus two additions:

  • When the GPU device is lost, Kyty prints a report before it exits. The lines start with [DEVLOST] and show what the driver reports (VK_EXT_device_fault where available) and, on NVIDIA through VK_NV_device_diagnostic_checkpoints, the last draw or dispatch each GPU stage reached, with its shader hashes and the commands recorded around it.
  • Message dialogs print their text (Message dialog: ...), so a run without --addcont GHOST2BASE000000 should now show the missing-entitlement message in the console.

Could you run it once with --addcont GHOST2BASE000000 until the device loss and upload the _kyty.txt? A short second run without --addcont would confirm the dialog text.

**@⁠Nawid3333** on GitHub · 2026-11-14 15:02 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-6879333132) @⁠yuca-a Thanks for the detailed report and for offering to test! I also hit a device loss in Ghost of Yōtei on an RX 9070 XT with a lab build, so it is probably not specific to NVIDIA. Here is a test build for it: [Windows build](https://github.com/Nawid3333/KytyPS5/actions/runs/43605538768) (artifact `KytyPS5-Windows-x64`). It is main 3e226bf plus #2219, #2090 and #2230 (the same three you used), plus two additions: - When the GPU device is lost, Kyty prints a report before it exits. The lines start with `[DEVLOST]` and show what the driver reports (`VK_EXT_device_fault` where available) and, on NVIDIA through `VK_NV_device_diagnostic_checkpoints`, the last draw or dispatch each GPU stage reached, with its shader hashes and the commands recorded around it. - Message dialogs print their text (`Message dialog: ...`), so a run without `--addcont GHOST2BASE000000` should now show the missing-entitlement message in the console. Could you run it once with `--addcont GHOST2BASE000000` until the device loss and upload the `_kyty.txt`? A short second run without `--addcont` would confirm the dialog text.
Author
Owner

@⁠yuca-a on GitHub · 2026-11-15 05:05 UTC · original

@⁠Nawid3333 Thanks for the build! I ran your Windows artifact (1dc58ce, KytyPS5-Windows-x64) on the same machine: RTX 5070, driver 621.14, Core Ultra 7 265F, Windows 11, game 01.008.000.

Run 1: --addcont GHOST2BASE000000

It gets further than any build so far. It passes the brightness-calibration screen and the difficulty selector, at about 5–9 fps while shaders compile.

difficulty select

No device loss this time. The device-loss reporting started ([DEVLOST] device-loss diagnostics: device_fault=true nv_checkpoints=true amd_buffer_marker=true) but never fired. Instead, after I picked a difficulty and the game started loading, it stalled on one frame (4003) for 10+ minutes until I closed it. RAM was steady at about 16.5 GB. The shader counter had reached VS 161 | PS 186 | CS 759.

Thread snapshot during the stall:

  • A guest thread spins at full speed at rip=0x901129582.
  • A host thread spins at full speed inside nvgpucomp64.dll, NVIDIA's shader compiler, so the driver seems to be stuck compiling one pipeline.
  • Disk reads were close to zero.

Run 2: without --addcont

The dialog text appears about 50 s after launch:

Message dialog: Unable to launch: missing base entitlement. Please contact PlayStation Support.

Run 3: --addcont again, with a warm pipeline/shader cache

It reproduces. The stall started right after I pressed X on the brightness screen, at frame 2367. Same picture: the guest thread at the same rip=0x901129582, and a host thread stuck in nvgpucomp64.dll (+0xdf236b). The pipeline that never finished compiling in run 1 wasn't cached, so the driver compiles it again and hangs in the same place. It was still on the same frame more than 5 minutes later, when I closed it.

So on NVIDIA, the blocker with this build seems to be a pipeline that the driver's compiler never finishes, not a device loss. I'm happy to test another build, for example one that logs the hash of the shader/pipeline it's compiling when this happens. Logs and the full thread snapshots are available if you want them.

Investigated with Claude Code (AI); test runs on my own machine.

**@⁠yuca-a** on GitHub · 2026-11-15 05:05 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-6889531333) @⁠Nawid3333 Thanks for the build! I ran your Windows artifact (`1dc58ce`, `KytyPS5-Windows-x64`) on the same machine: RTX 5070, driver 621.14, Core Ultra 7 265F, Windows 11, game 01.008.000. ### Run 1: `--addcont GHOST2BASE000000` It gets further than any build so far. It passes the brightness-calibration screen and the difficulty selector, at about 5–9 fps while shaders compile. <img width="640" alt="difficulty select" src="https://github.com/user-attachments/assets/c84cd178-d1e3-448c-8336-db97172d0c25" /> **No device loss this time.** The device-loss reporting started (`[DEVLOST] device-loss diagnostics: device_fault=true nv_checkpoints=true amd_buffer_marker=true`) but never fired. Instead, after I picked a difficulty and the game started loading, it **stalled on one frame (4003) for 10+ minutes** until I closed it. RAM was steady at about 16.5 GB. The shader counter had reached VS 161 | PS 186 | CS 759. Thread snapshot during the stall: - A guest thread spins at full speed at `rip=0x901129582`. - A host thread spins at full speed inside **`nvgpucomp64.dll`**, NVIDIA's shader compiler, so the driver seems to be stuck compiling one pipeline. - Disk reads were close to zero. ### Run 2: without `--addcont` The dialog text appears about 50 s after launch: ``` Message dialog: Unable to launch: missing base entitlement. Please contact PlayStation Support. ``` ### Run 3: `--addcont` again, with a warm pipeline/shader cache It reproduces. The stall started right after I pressed X on the brightness screen, at frame 2367. Same picture: the guest thread at the **same `rip=0x901129582`**, and a host thread stuck in `nvgpucomp64.dll` (`+0xdf236b`). The pipeline that never finished compiling in run 1 wasn't cached, so the driver compiles it again and hangs in the same place. It was still on the same frame more than 5 minutes later, when I closed it. So on NVIDIA, the blocker with this build seems to be a pipeline that the driver's compiler never finishes, not a device loss. I'm happy to test another build, for example one that logs the hash of the shader/pipeline it's compiling when this happens. Logs and the full thread snapshots are available if you want them. <sub>Investigated with Claude Code (AI); test runs on my own machine.</sub>
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-15 15:24 UTC · original

@⁠yuca-a Thanks, that is very clear, and the thread snapshots were the right thing to look at.

  • The dialog text shows why the game waited without --addcont: it tells you itself that the base entitlement is missing. I opened #2287 so that official builds print that text too.
  • The stall on NVIDIA: a host thread busy inside nvgpucomp64.dll the whole time, while the game thread waits, points to the driver not returning from one pipeline compile. To see which one, this build adds a watcher: Windows build (artifact KytyPS5-Windows-x64). It is the same build as before plus this: when the driver takes far longer than usual for one pipeline, Kyty prints lines starting with [PIPELINE-SLOW] with the hashes of its shaders, and writes the SPIR-V of those shaders to a folder _SlowPipelines (the line shows its full path). The line repeats while the compile runs.

Could you run it with --addcont until the stall, wait until the first [PIPELINE-SLOW] line appears, and then attach those lines and the _SlowPipelines folder (zipped)? With the SPIR-V I can check what in that shader the compiler gets stuck on, and whether Kyty can emit it differently.

**@⁠Nawid3333** on GitHub · 2026-11-15 15:24 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-6896814880) @⁠yuca-a Thanks, that is very clear, and the thread snapshots were the right thing to look at. - **The dialog text** shows why the game waited without `--addcont`: it tells you itself that the base entitlement is missing. I opened #2287 so that official builds print that text too. - **The stall on NVIDIA:** a host thread busy inside `nvgpucomp64.dll` the whole time, while the game thread waits, points to the driver not returning from one pipeline compile. To see which one, this build adds a watcher: [Windows build](https://github.com/Nawid3333/KytyPS5/actions/runs/43726218765) (artifact `KytyPS5-Windows-x64`). It is the same build as before plus this: when the driver takes far longer than usual for one pipeline, Kyty prints lines starting with `[PIPELINE-SLOW]` with the hashes of its shaders, and writes the SPIR-V of those shaders to a folder `_SlowPipelines` (the line shows its full path). The line repeats while the compile runs. Could you run it with `--addcont` until the stall, wait until the first `[PIPELINE-SLOW]` line appears, and then attach those lines and the `_SlowPipelines` folder (zipped)? With the SPIR-V I can check what in that shader the compiler gets stuck on, and whether Kyty can emit it differently.
Author
Owner

@⁠Ben-Dash on GitHub · 2026-11-19 13:15 UTC · original

With the latest branch, this issue is now resolved and KytyPS5 can now boot into the game.

**@⁠Ben-Dash** on GitHub · 2026-11-19 13:15 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-7010203894) With the latest branch, this issue is now resolved and KytyPS5 can now boot into the game.
Author
Owner

@⁠yuca-a on GitHub · 2026-11-22 18:01 UTC · original

Sorry for the delay, I moved.

@⁠Nawid3333 Here is the run with your [PIPELINE-SLOW] build (cc067ef, --addcont GHOST2BASE000000), same machine as before: RTX 5070, driver 621.14, Core Ultra 7 265F, 32 GB RAM, game 01.008.000.

Logs and SPIR-V: yotei-SlowPipelines-cc067ef.zip

The zip has _SlowPipelines (8 .spv files) and every [PIPELINE-SLOW] line from two runs.

What happens

There is no single compile that never returns. It is a chain of very slow compute pipelines, one after another, and the game thread waits on each one (the same guest rip=0x901129582 as before). From pressing X on the brightness screen, the frame counter stayed at 2247–2248 for about 10 minutes until I closed it:

Pipeline Compute shader Compile time SPIR-V
#1150 0xe61c8f3963243550 174 s 1.6 MB
#1167 0x55927d0d3d3fef47 26 s 2.9 MB
#1168 0x55927d0d3d3fef47 (other id) 26 s 2.9 MB
#1169 0x55927d0d3d3fef47 (other id) 26 s 2.9 MB
#1218 0x5b41efe845f6f83b 26 s 1.2 MB
#1229 0xe6a3a25f25529774 30 s 1.3 MB

Before the brightness screen there were two more (both caught on Nov 19 too): #841 0x53f2b6c8a752875a (21 s) and #844 (20 s), both ~2.5 MB.

Notes:

  • 0x55927d0d3d3fef47 is compiled three times as separate pipelines (different ids), about 26 s each, so any variant-related dedup would help a lot.
  • The SPIR-V modules are huge (1.2–2.9 MB). #1150 is the worst at almost 3 minutes for 1.6 MB.
  • No device loss in any run.

For comparison: Erlou's Yōtei fork (v0.1.6) on the same 1.008 dump also sat on these compiles but eventually got through to the opening cinematic after about 10 minutes (at 3–4 fps), so the slow compiles seem to be what everything is waiting on.

Investigated with Claude Code (AI); test runs on my own machine.

**@⁠yuca-a** on GitHub · 2026-11-22 18:01 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-7083280433) Sorry for the delay, I moved. @⁠Nawid3333 Here is the run with your `[PIPELINE-SLOW]` build (`cc067ef`, `--addcont GHOST2BASE000000`), same machine as before: RTX 5070, driver 621.14, Core Ultra 7 265F, 32 GB RAM, game 01.008.000. Logs and SPIR-V: [yotei-SlowPipelines-cc067ef.zip](https://github.com/user-attachments/files/35238912/yotei-SlowPipelines-cc067ef.zip) The zip has `_SlowPipelines` (8 `.spv` files) and every `[PIPELINE-SLOW]` line from two runs. ### What happens There is no single compile that never returns. It is a **chain of very slow compute pipelines**, one after another, and the game thread waits on each one (the same guest `rip=0x901129582` as before). From pressing X on the brightness screen, the frame counter stayed at **2247–2248 for about 10 minutes** until I closed it: | Pipeline | Compute shader | Compile time | SPIR-V | |---|---|---|---| | #1150 | `0xe61c8f3963243550` | **174 s** | 1.6 MB | | #1167 | `0x55927d0d3d3fef47` | 26 s | 2.9 MB | | #1168 | `0x55927d0d3d3fef47` (other id) | 26 s | 2.9 MB | | #1169 | `0x55927d0d3d3fef47` (other id) | 26 s | 2.9 MB | | #1218 | `0x5b41efe845f6f83b` | 26 s | 1.2 MB | | #1229 | `0xe6a3a25f25529774` | 30 s | 1.3 MB | Before the brightness screen there were two more (both caught on Nov 19 too): #841 `0x53f2b6c8a752875a` (21 s) and #844 (20 s), both ~2.5 MB. Notes: - `0x55927d0d3d3fef47` is compiled **three times** as separate pipelines (different ids), about 26 s each, so any variant-related dedup would help a lot. - The SPIR-V modules are huge (1.2–2.9 MB). #1150 is the worst at almost 3 minutes for 1.6 MB. - No device loss in any run. For comparison: Erlou's Yōtei fork (v0.1.6) on the same 1.008 dump also sat on these compiles but eventually got through to the opening cinematic after about 10 minutes (at 3–4 fps), so the slow compiles seem to be what everything is waiting on. <sub>Investigated with Claude Code (AI); test runs on my own machine.</sub>
Author
Owner

@⁠Nawid3333 on GitHub · 2026-11-22 19:02 UTC · original

@⁠yuca-a Thanks, that is exactly what was needed, and the SPIR-V makes it reproducible without the game. Compiling your eight modules with fossilize-replay on an RX 9070 XT (AMD's LLPC compiler) is slower than your RTX 5070 on every one of them, and pipeline 1150 is the slowest on both, by a wide margin. So it is not specific to NVIDIA's compiler but to the shape of the SPIR-V Kyty emits for these shaders. Lavapipe (LLVM on the CPU) compiles pipeline 1150 about as fast as pipeline 1167, so it is the GPU compilers' back ends that struggle with it.

What the modules look like: each is one function of 55k to 141k instructions. Pipeline 1150 has 3,392 blocks, 8,137 OpPhi, 11,956 OpSelect and 16,950 OpBitcast, and its main function holds six loops of 365 blocks each. The three 0x55927d0d3d3fef47 pipelines differ in fewer than 0.3% of their instructions (a few constants and some buffer bounds-check blocks): they are resource specializations of the same shader, so each one is a separate compile.

Next on my side: find what in pipeline 1150 the compilers spend their time on, and whether Kyty can emit it in a form they handle faster.

One more run would help: start the game the same way and go past the brightness screen again. Every pipeline that finished last time should now come from Kyty's pipeline cache and the driver's shader cache, so these waits should not come back. If they do, please attach the [PIPELINE-SLOW] lines again, because then the caches miss them.

**@⁠Nawid3333** on GitHub · 2026-11-22 19:02 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/2204#issuecomment-7084056996) @⁠yuca-a Thanks, that is exactly what was needed, and the SPIR-V makes it reproducible without the game. Compiling your eight modules with `fossilize-replay` on an RX 9070 XT (AMD's LLPC compiler) is slower than your RTX 5070 on every one of them, and pipeline 1150 is the slowest on both, by a wide margin. So it is not specific to NVIDIA's compiler but to the shape of the SPIR-V Kyty emits for these shaders. Lavapipe (LLVM on the CPU) compiles pipeline 1150 about as fast as pipeline 1167, so it is the GPU compilers' back ends that struggle with it. What the modules look like: each is one function of 55k to 141k instructions. Pipeline 1150 has 3,392 blocks, 8,137 `OpPhi`, 11,956 `OpSelect` and 16,950 `OpBitcast`, and its main function holds six loops of 365 blocks each. The three `0x55927d0d3d3fef47` pipelines differ in fewer than 0.3% of their instructions (a few constants and some buffer bounds-check blocks): they are resource specializations of the same shader, so each one is a separate compile. Next on my side: find what in pipeline 1150 the compilers spend their time on, and whether Kyty can emit it in a form they handle faster. One more run would help: start the game the same way and go past the brightness screen again. Every pipeline that finished last time should now come from Kyty's pipeline cache and the driver's shader cache, so these waits should not come back. If they do, please attach the `[PIPELINE-SLOW]` lines again, because then the caches miss them.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/KytyPS5--KytyPS5#2204
No description provided.