[Demon Souls] Shader work #500
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!500
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/500/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TarkusR on GitHub · 2026-09-07 09:40 UTC · original
TarkusR:demons-souls-shaders→main· +4035 −171 · 49 files · 24 commits · closed without mergingThis pull request includes all the changes i made to kyty to get demon souls in game with accurate textures and somewhat 1 to 1 to the ps5 game.
It includes changes to the renderer and shader compiler mainly to help with shader structure.
Shader
Renderer
Some screenshots :
The performance aren't the greatest but i wanted to push that so i could work on it without having to go through rebase hell.
AI Usage :
AI was used for research and code generation, emulator was built and tested by me on demon souls and blue prince.
@Nmzik on GitHub · 2026-09-07 11:38 UTC · original · edited 2026-09-07 11:43 UTC
@TarkusR Thanks for PR. Nice work. I ll try to verify everything works correctly overnext few days
@Leclowndu93150 on GitHub · 2026-09-07 19:06 UTC · original
god bless contributors
@ChronoRPG on GitHub · 2026-09-08 12:26 UTC · original
9070 XT ERROR
Initialized: Graphics
version = 13
AJM codec=1, name=ATRAC9 decoder
warning: executing wave64 compute shader cs=0x0000000208881200
Shaders: VS 0 | PS 0 | CS 1 | GS 0
Shaders: VS 0 | PS 0 | CS 2 | GS 0
Shaders: VS 0 | PS 0 | CS 3 | GS 0
Shaders: VS 0 | PS 0 | CS 4 | GS 0
Shaders: VS 0 | PS 0 | CS 5 | GS 0
Shaders: VS 0 | PS 0 | CS 6 | GS 0
Shaders: VS 0 | PS 0 | CS 7 | GS 0
Shaders: VS 0 | PS 0 | CS 8 | GS 0
Shaders: VS 0 | PS 0 | CS 9 | GS 0
Shaders: VS 0 | PS 0 | CS 10 | GS 0
Shaders: VS 0 | PS 0 | CS 11 | GS 0
Shaders: VS 0 | PS 0 | CS 12 | GS 0
Shaders: VS 0 | PS 0 | CS 13 | GS 0
Shaders: VS 0 | PS 0 | CS 14 | GS 0
Shaders: VS 0 | PS 0 | CS 15 | GS 0
Shaders: VS 0 | PS 0 | CS 16 | GS 0
Shaders: VS 0 | PS 0 | CS 17 | GS 0
Shaders: VS 0 | PS 0 | CS 18 | GS 0
Shaders: VS 0 | PS 0 | CS 19 | GS 0
Shaders: VS 0 | PS 0 | CS 20 | GS 0
Shaders: VS 0 | PS 0 | CS 21 | GS 0
Shaders: VS 0 | PS 0 | CS 22 | GS 0
Shaders: VS 0 | PS 0 | CS 23 | GS 0
Shaders: VS 0 | PS 0 | CS 24 | GS 0
Shaders: VS 0 | PS 0 | CS 25 | GS 0
Shaders: VS 0 | PS 0 | CS 26 | GS 0
Shaders: VS 0 | PS 0 | CS 27 | GS 0
Shaders: VS 0 | PS 0 | CS 28 | GS 0
Shaders: VS 0 | PS 0 | CS 29 | GS 0
Shaders: VS 0 | PS 0 | CS 30 | GS 0
Shaders: VS 0 | PS 0 | CS 31 | GS 0
Shaders: VS 0 | PS 0 | CS 32 | GS 0
Shaders: VS 0 | PS 0 | CS 33 | GS 0
Shaders: VS 0 | PS 0 | CS 34 | GS 0
Shaders: VS 0 | PS 0 | CS 35 | GS 0
Shaders: VS 1 | PS 0 | CS 35 | GS 0
Shaders: VS 1 | PS 0 | CS 36 | GS 0
Shaders: VS 1 | PS 0 | CS 37 | GS 0
Shaders: VS 1 | PS 0 | CS 38 | GS 0
Shaders: VS 1 | PS 0 | CS 39 | GS 0
Shaders: VS 1 | PS 0 | CS 40 | GS 0
Shaders: VS 1 | PS 0 | CS 41 | GS 0
Shaders: VS 1 | PS 0 | CS 42 | GS 0
Shaders: VS 1 | PS 0 | CS 43 | GS 0
Shaders: VS 1 | PS 0 | CS 44 | GS 0
Shaders: VS 1 | PS 0 | CS 45 | GS 0
Shaders: VS 1 | PS 0 | CS 46 | GS 0
Shaders: VS 1 | PS 0 | CS 47 | GS 0
Shaders: VS 1 | PS 0 | CS 48 | GS 0
Shaders: VS 1 | PS 0 | CS 49 | GS 0
Shaders: VS 1 | PS 0 | CS 50 | GS 0
Shaders: VS 1 | PS 0 | CS 51 | GS 0
Shaders: VS 1 | PS 0 | CS 52 | GS 0
Shaders: VS 1 | PS 0 | CS 53 | GS 0
Shaders: VS 1 | PS 0 | CS 54 | GS 0
Shaders: VS 1 | PS 0 | CS 55 | GS 0
Shaders: VS 1 | PS 0 | CS 56 | GS 0
Shaders: VS 1 | PS 0 | CS 57 | GS 0
Shaders: VS 1 | PS 0 | CS 58 | GS 0
Shaders: VS 1 | PS 0 | CS 59 | GS 0
Shaders: VS 1 | PS 0 | CS 60 | GS 0
Shaders: VS 1 | PS 0 | CS 61 | GS 0
Shaders: VS 1 | PS 0 | CS 62 | GS 0
Shaders: VS 1 | PS 0 | CS 63 | GS 0
Shaders: VS 1 | PS 0 | CS 64 | GS 0
Shaders: VS 1 | PS 0 | CS 65 | GS 0
Shaders: VS 1 | PS 0 | CS 66 | GS 0
Shaders: VS 1 | PS 0 | CS 67 | GS 0
Shaders: VS 1 | PS 0 | CS 68 | GS 0
Shaders: VS 1 | PS 0 | CS 69 | GS 0
Shaders: VS 1 | PS 0 | CS 70 | GS 0
Shaders: VS 1 | PS 0 | CS 71 | GS 0
Shaders: VS 1 | PS 0 | CS 72 | GS 0
Shaders: VS 1 | PS 0 | CS 73 | GS 0
Shaders: VS 1 | PS 0 | CS 74 | GS 0
Shaders: VS 1 | PS 0 | CS 75 | GS 0
Shaders: VS 1 | PS 0 | CS 76 | GS 0
Shaders: VS 1 | PS 0 | CS 77 | GS 0
Shaders: VS 1 | PS 0 | CS 78 | GS 0
Shaders: VS 1 | PS 0 | CS 79 | GS 0
Shaders: VS 1 | PS 0 | CS 80 | GS 0
Shaders: VS 1 | PS 0 | CS 81 | GS 0
Shaders: VS 1 | PS 0 | CS 82 | GS 0
Shaders: VS 1 | PS 0 | CS 83 | GS 0
Shaders: VS 1 | PS 0 | CS 84 | GS 0
Shaders: VS 1 | PS 0 | CS 85 | GS 0
Shaders: VS 1 | PS 0 | CS 86 | GS 0
Shaders: VS 1 | PS 0 | CS 87 | GS 0
Shaders: VS 1 | PS 0 | CS 88 | GS 0
Shaders: VS 1 | PS 0 | CS 89 | GS 0
Shaders: VS 1 | PS 0 | CS 90 | GS 0
Shaders: VS 1 | PS 1 | CS 90 | GS 0
Shaders: VS 2 | PS 1 | CS 90 | GS 0
Shaders: VS 2 | PS 1 | CS 91 | GS 0
Shaders: VS 2 | PS 1 | CS 92 | GS 0
Shaders: VS 2 | PS 1 | CS 93 | GS 0
Shaders: VS 2 | PS 1 | CS 94 | GS 0
Shaders: VS 2 | PS 1 | CS 95 | GS 0
Shaders: VS 2 | PS 1 | CS 96 | GS 0
--- Build ---
Source build 8e9acc5
--- Stack Trace ---
[0] 000000014093adf6
[1] 000000014093c463
[2] 0000000140938903
[3] 000000014083ed2e
[4] 00000001407b38a2
[5] 00000001407b3311
[6] 00000001407c77cf
[7] 0000000140739c0e
[8] 0000000140710bfc
[9] 0000000140737bbd
[10] 0000000140737094
[11] 000000014072f142
[12] 000000014073cf2c
--- Error ---
shader resource tracking: hash=0x9fb5cc274b5e4f82 stage=compute pc=0x00001044 GetImageResource dword 0 is not a valid runtime value in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\ir\passes\ResourceTracking.cpp:167
F:\Emuladores\KytyPS5>
@Nmzik on GitHub · 2026-09-08 16:58 UTC · original
@Leclowndu93150 Please keep your comments related to the PR. Thanks!
@Leclowndu93150 on GitHub · 2026-09-08 16:59 UTC · original
That screenshot was from the PR branch.
@TarkusR on GitHub · 2026-09-08 17:20 UTC · original
@ChronoRPG i've only tested with nvidia hardware (RTX 4080 13700kf 32gb ram) can anyone else reproduce that crash on AMD cards ?
@Leclowndu93150 on GitHub · 2026-09-08 18:07 UTC · original
https://github.com/TarkusR/KytyPS5/pull/1 managed to get +42% more draw calls out of the emulator (this is a PR to the fork)
@nzc20090108 on GitHub · 2026-09-09 01:51 UTC · original
yeah,me,too.
@Myoko on GitHub · 2026-09-09 06:01 UTC · original
4070S error
Initialized: Config
Initialized: Log
Initialized: Timer
Initialized: Pthread
Initialized: Profiler
Initialized: Network
Initialized: Memory
Initialized: FileSystem
Initialized: Controller
Initialized: Audio
Vulkan pipeline cache: initializing _PipelineCache\PPSA01340.bin
Vulkan pipeline cache: initialized empty
Initialized: Graphics
version = 13
AJM codec=1, name=ATRAC9 decoder
warning: executing wave64 compute shader cs=0x0000000208881200
Shaders: VS 0 | PS 0 | CS 1 | GS 0
Shaders: VS 0 | PS 0 | CS 2 | GS 0
Shaders: VS 0 | PS 0 | CS 3 | GS 0
Shaders: VS 0 | PS 0 | CS 4 | GS 0
Shaders: VS 0 | PS 0 | CS 5 | GS 0
Shaders: VS 0 | PS 0 | CS 6 | GS 0
Shaders: VS 0 | PS 0 | CS 7 | GS 0
Shaders: VS 0 | PS 0 | CS 8 | GS 0
Shaders: VS 0 | PS 0 | CS 9 | GS 0
Shaders: VS 0 | PS 0 | CS 10 | GS 0
Shaders: VS 0 | PS 0 | CS 11 | GS 0
Shaders: VS 0 | PS 0 | CS 12 | GS 0
Shaders: VS 0 | PS 0 | CS 13 | GS 0
Shaders: VS 0 | PS 0 | CS 14 | GS 0
Shaders: VS 0 | PS 0 | CS 15 | GS 0
Shaders: VS 0 | PS 0 | CS 16 | GS 0
Shaders: VS 0 | PS 0 | CS 17 | GS 0
Shaders: VS 0 | PS 0 | CS 18 | GS 0
Shaders: VS 0 | PS 0 | CS 19 | GS 0
Shaders: VS 0 | PS 0 | CS 20 | GS 0
Shaders: VS 0 | PS 0 | CS 21 | GS 0
Shaders: VS 0 | PS 0 | CS 22 | GS 0
Shaders: VS 0 | PS 0 | CS 23 | GS 0
Shaders: VS 0 | PS 0 | CS 24 | GS 0
Shaders: VS 0 | PS 0 | CS 25 | GS 0
Shaders: VS 0 | PS 0 | CS 26 | GS 0
Shaders: VS 0 | PS 0 | CS 27 | GS 0
Shaders: VS 0 | PS 0 | CS 28 | GS 0
Shaders: VS 0 | PS 0 | CS 29 | GS 0
Shaders: VS 0 | PS 0 | CS 30 | GS 0
Shaders: VS 0 | PS 0 | CS 31 | GS 0
Shaders: VS 0 | PS 0 | CS 32 | GS 0
Shaders: VS 0 | PS 0 | CS 33 | GS 0
Shaders: VS 0 | PS 0 | CS 34 | GS 0
Shaders: VS 0 | PS 0 | CS 35 | GS 0
Shaders: VS 1 | PS 0 | CS 35 | GS 0
Shaders: VS 1 | PS 0 | CS 36 | GS 0
Shaders: VS 1 | PS 0 | CS 37 | GS 0
Shaders: VS 1 | PS 0 | CS 38 | GS 0
Shaders: VS 1 | PS 0 | CS 39 | GS 0
Shaders: VS 1 | PS 0 | CS 40 | GS 0
Shaders: VS 1 | PS 0 | CS 41 | GS 0
Shaders: VS 1 | PS 0 | CS 42 | GS 0
Shaders: VS 1 | PS 0 | CS 43 | GS 0
Shaders: VS 1 | PS 0 | CS 44 | GS 0
Shaders: VS 1 | PS 0 | CS 45 | GS 0
Shaders: VS 1 | PS 0 | CS 46 | GS 0
Shaders: VS 1 | PS 0 | CS 47 | GS 0
Shaders: VS 1 | PS 0 | CS 48 | GS 0
Shaders: VS 1 | PS 0 | CS 49 | GS 0
Shaders: VS 1 | PS 0 | CS 50 | GS 0
Shaders: VS 1 | PS 0 | CS 51 | GS 0
Shaders: VS 1 | PS 0 | CS 52 | GS 0
Shaders: VS 1 | PS 0 | CS 53 | GS 0
Shaders: VS 1 | PS 0 | CS 54 | GS 0
Shaders: VS 1 | PS 0 | CS 55 | GS 0
Shaders: VS 1 | PS 0 | CS 56 | GS 0
Shaders: VS 1 | PS 0 | CS 57 | GS 0
Shaders: VS 1 | PS 0 | CS 58 | GS 0
Shaders: VS 1 | PS 0 | CS 59 | GS 0
Shaders: VS 1 | PS 0 | CS 60 | GS 0
Shaders: VS 1 | PS 0 | CS 61 | GS 0
Shaders: VS 1 | PS 0 | CS 62 | GS 0
Shaders: VS 1 | PS 0 | CS 63 | GS 0
Shaders: VS 1 | PS 0 | CS 64 | GS 0
Shaders: VS 1 | PS 0 | CS 65 | GS 0
Shaders: VS 1 | PS 0 | CS 66 | GS 0
Shaders: VS 1 | PS 0 | CS 67 | GS 0
Shaders: VS 1 | PS 0 | CS 68 | GS 0
Shaders: VS 1 | PS 0 | CS 69 | GS 0
Shaders: VS 1 | PS 0 | CS 70 | GS 0
Shaders: VS 1 | PS 0 | CS 71 | GS 0
Shaders: VS 1 | PS 0 | CS 72 | GS 0
Shaders: VS 1 | PS 0 | CS 73 | GS 0
Shaders: VS 1 | PS 0 | CS 74 | GS 0
Shaders: VS 1 | PS 0 | CS 75 | GS 0
Shaders: VS 1 | PS 0 | CS 76 | GS 0
Shaders: VS 1 | PS 0 | CS 77 | GS 0
Shaders: VS 1 | PS 0 | CS 78 | GS 0
Shaders: VS 1 | PS 0 | CS 79 | GS 0
Shaders: VS 1 | PS 0 | CS 80 | GS 0
Shaders: VS 1 | PS 0 | CS 81 | GS 0
Shaders: VS 1 | PS 0 | CS 82 | GS 0
Shaders: VS 1 | PS 0 | CS 83 | GS 0
Shaders: VS 1 | PS 0 | CS 84 | GS 0
Shaders: VS 1 | PS 0 | CS 85 | GS 0
Shaders: VS 1 | PS 0 | CS 86 | GS 0
Shaders: VS 1 | PS 0 | CS 87 | GS 0
Shaders: VS 1 | PS 0 | CS 88 | GS 0
Shaders: VS 1 | PS 0 | CS 89 | GS 0
Shaders: VS 1 | PS 0 | CS 90 | GS 0
Shaders: VS 1 | PS 1 | CS 90 | GS 0
Shaders: VS 2 | PS 1 | CS 90 | GS 0
Shaders: VS 2 | PS 1 | CS 91 | GS 0
Shaders: VS 2 | PS 1 | CS 92 | GS 0
Shaders: VS 2 | PS 1 | CS 93 | GS 0
Shaders: VS 2 | PS 1 | CS 94 | GS 0
Shaders: VS 2 | PS 1 | CS 95 | GS 0
Shaders: VS 2 | PS 1 | CS 96 | GS 0
--- Build ---
Fork build RainKikyou/KytyPS5
1d6e23a--- Stack Trace ---
[0] 0000000140948c86
[1] 000000014094f44f
[2] 000000014094630b
[3] 0000000140943431
[4] 00000001408426cb
[5] 00000001407b58a2
[6] 00000001407b52d1
[7] 00000001407ca2f5
[8] 000000014073a1ba
[9] 0000000140710c05
[10] 0000000140737dfd
[11] 00000001407372d4
[12] 000000014072f382
--- Error ---
shader resource tracking: hash=0xfb0becc9db83db77 stage=compute pc=0x00001044 GetImageResource dword 0 is not a valid runtime value in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\ir\passes\ResourceTracking.cpp:173
@TarkusR on GitHub · 2026-09-09 08:22 UTC · original
@Myoko @ChronoRPG @nzc20090108 i'm gonna need the _kyty.txt with shader log to file enabled so i can check it out
@Myoko on GitHub · 2026-09-09 09:16 UTC · original
Of course, here is the kyty.txt file.
_kyty.zip
@TarkusR on GitHub · 2026-09-09 10:45 UTC · original
@Myoko i added some modification to the invariant indirect matcher, can you try this ?
@Myoko on GitHub · 2026-09-09 11:01 UTC · original
Sure! If you can provide a build version, I can give it a try
@TarkusR on GitHub · 2026-09-09 11:16 UTC · original
Here
KytyPS5-demons-souls-shaders-865cc0d-win64.zip
@Myoko on GitHub · 2026-09-09 11:28 UTC · original
This time it successfully booted into the language selection screen. Let me do some more testing to see if I can get into the game smoothly.

@nzc20090108 on GitHub · 2026-09-09 11:36 UTC · original
_kyty.zip
@nzc20090108 on GitHub · 2026-09-09 11:44 UTC · original
Can you provide me with a build version as well?
@TarkusR on GitHub · 2026-09-09 11:45 UTC · original
@nzc20090108 can you try this ?
@nzc20090108 on GitHub · 2026-09-09 12:05 UTC · original
still no access.
Initialized: Config
Initialized: Log
Initialized: Timer
Initialized: Pthread
Initialized: Profiler
Initialized: Network
Initialized: Memory
Initialized: FileSystem
Initialized: Controller
Initialized: Audio
Vulkan pipeline cache: initializing _PipelineCache\PPSA01342.bin
Vulkan pipeline cache: initialized empty
Initialized: Graphics
version = 13
AJM codec=1, name=ATRAC9 decoder
warning: executing wave64 compute shader cs=0x0000000208881200
Shaders: VS 0 | PS 0 | CS 1 | GS 0
Shaders: VS 0 | PS 0 | CS 2 | GS 0
Shaders: VS 0 | PS 0 | CS 3 | GS 0
Shaders: VS 0 | PS 0 | CS 4 | GS 0
Shaders: VS 0 | PS 0 | CS 5 | GS 0
Shaders: VS 0 | PS 0 | CS 6 | GS 0
Shaders: VS 0 | PS 0 | CS 7 | GS 0
Shaders: VS 0 | PS 0 | CS 8 | GS 0
Shaders: VS 0 | PS 0 | CS 9 | GS 0
Shaders: VS 0 | PS 0 | CS 10 | GS 0
Shaders: VS 0 | PS 0 | CS 11 | GS 0
Shaders: VS 0 | PS 0 | CS 12 | GS 0
Shaders: VS 0 | PS 0 | CS 13 | GS 0
Shaders: VS 0 | PS 0 | CS 14 | GS 0
Shaders: VS 0 | PS 0 | CS 15 | GS 0
Shaders: VS 0 | PS 0 | CS 16 | GS 0
Shaders: VS 0 | PS 0 | CS 17 | GS 0
Shaders: VS 0 | PS 0 | CS 18 | GS 0
Shaders: VS 0 | PS 0 | CS 19 | GS 0
Shaders: VS 0 | PS 0 | CS 20 | GS 0
Shaders: VS 0 | PS 0 | CS 21 | GS 0
Shaders: VS 0 | PS 0 | CS 22 | GS 0
Shaders: VS 0 | PS 0 | CS 23 | GS 0
Shaders: VS 0 | PS 0 | CS 24 | GS 0
Shaders: VS 0 | PS 0 | CS 25 | GS 0
Shaders: VS 0 | PS 0 | CS 26 | GS 0
Shaders: VS 0 | PS 0 | CS 27 | GS 0
Shaders: VS 0 | PS 0 | CS 28 | GS 0
Shaders: VS 0 | PS 0 | CS 29 | GS 0
Shaders: VS 0 | PS 0 | CS 30 | GS 0
Shaders: VS 0 | PS 0 | CS 31 | GS 0
Shaders: VS 0 | PS 0 | CS 32 | GS 0
Shaders: VS 0 | PS 0 | CS 33 | GS 0
Shaders: VS 0 | PS 0 | CS 34 | GS 0
Shaders: VS 0 | PS 0 | CS 35 | GS 0
Shaders: VS 1 | PS 0 | CS 35 | GS 0
Shaders: VS 1 | PS 0 | CS 36 | GS 0
Shaders: VS 1 | PS 0 | CS 37 | GS 0
Shaders: VS 1 | PS 0 | CS 38 | GS 0
Shaders: VS 1 | PS 0 | CS 39 | GS 0
Shaders: VS 1 | PS 0 | CS 40 | GS 0
Shaders: VS 1 | PS 0 | CS 41 | GS 0
Shaders: VS 1 | PS 0 | CS 42 | GS 0
Shaders: VS 1 | PS 0 | CS 43 | GS 0
Shaders: VS 1 | PS 0 | CS 44 | GS 0
Shaders: VS 1 | PS 0 | CS 45 | GS 0
Shaders: VS 1 | PS 0 | CS 46 | GS 0
Shaders: VS 1 | PS 0 | CS 47 | GS 0
Shaders: VS 1 | PS 0 | CS 48 | GS 0
--- Build ---
Source build
865cc0d--- Stack Trace ---
[0] 0000000140501749
[1] 000000014008859a
[2] 000000014004a91c
[3] 0000000140054a9e
[4] 0000000140094e4b
[5] 000000014009646e
[6] 00000001400b92c0
[7] 000000014002b4f3
[8] 000000014002b6d8
[9] 000000014000aa73
[10] 00000001400294ff
[11] 00000001400288dd
[12] 000000014002837b
--- Error ---
image format does not support required usage: format=141 type=1 usage=0xf flags=0x188 samples=1
in C:\Users\Oualid\Desktop\kyty-ref\src\graphics\host_gpu\renderer\image\image.cpp:690
D:\demonsouls\KytyPS5-demons-souls-shaders-865cc0d-win64>
_kyty.zip
@Myoko on GitHub · 2026-09-09 12:36 UTC · original · edited 2026-09-09 12:49 UTC
@TarkusR I tried launching the game 5 times, and every time it crashed at the character creation screen. The logs have been uploaded,BTW Game version: 01.005.000
_kyty.zip
@larfy298 on GitHub · 2026-09-09 13:53 UTC · original
Am on 7900XTX and getting same crash message as nzc20090108
@TarkusR on GitHub · 2026-09-09 14:03 UTC · original
@nzc20090108 @Myoko @larfy298 can you guys try this ?
KytyPS5-demons-souls-shaders-688d485-win64.zip
@larfy298 on GitHub · 2026-09-09 14:11 UTC · original · edited 2026-09-09 14:13 UTC
Yep! Fixed it, got ingame beautifully on amd! (At 2fps)
@Myoko on GitHub · 2026-09-09 14:31 UTC · original · edited 2026-09-09 14:55 UTC
@TarkusR Thank you for everything you've done, This time everything works normally. i can create a character and ingame. Although the frame rate is only 1–2 FPS, at least i can get into the game without any crashes



@TarkusR on GitHub · 2026-09-09 14:55 UTC · original
Thank you guys for testing
@Nmzik i think it should be ok for AMD users now. Let me know if anything is needed
@danielrdz21 on GitHub · 2026-09-10 00:25 UTC · original
7900 XT ERROR
Initialized: Config
Initialized: Log
Initialized: Timer
Initialized: Pthread
Initialized: Profiler
Initialized: Network
Initialized: Memory
Initialized: FileSystem
Initialized: Controller
Initialized: Audio
Vulkan pipeline cache: initializing _PipelineCache\PPSA01341.bin
Vulkan pipeline cache: initialized empty
Initialized: Graphics
version = 13
AJM codec=1, name=ATRAC9 decoder
warning: executing wave64 compute shader cs=0x0000000208881200
Shaders: VS 0 | PS 0 | CS 1 | GS 0
Shaders: VS 0 | PS 0 | CS 2 | GS 0
Shaders: VS 0 | PS 0 | CS 3 | GS 0
Shaders: VS 0 | PS 0 | CS 4 | GS 0
Shaders: VS 0 | PS 0 | CS 5 | GS 0
Shaders: VS 0 | PS 0 | CS 6 | GS 0
Shaders: VS 0 | PS 0 | CS 7 | GS 0
Shaders: VS 0 | PS 0 | CS 8 | GS 0
Shaders: VS 0 | PS 0 | CS 9 | GS 0
Shaders: VS 0 | PS 0 | CS 10 | GS 0
Shaders: VS 0 | PS 0 | CS 11 | GS 0
Shaders: VS 0 | PS 0 | CS 12 | GS 0
Shaders: VS 0 | PS 0 | CS 13 | GS 0
Shaders: VS 0 | PS 0 | CS 14 | GS 0
Shaders: VS 0 | PS 0 | CS 15 | GS 0
Shaders: VS 0 | PS 0 | CS 16 | GS 0
Shaders: VS 0 | PS 0 | CS 17 | GS 0
Shaders: VS 0 | PS 0 | CS 18 | GS 0
Shaders: VS 0 | PS 0 | CS 19 | GS 0
Shaders: VS 0 | PS 0 | CS 20 | GS 0
Shaders: VS 0 | PS 0 | CS 21 | GS 0
Shaders: VS 0 | PS 0 | CS 22 | GS 0
Shaders: VS 0 | PS 0 | CS 23 | GS 0
Shaders: VS 0 | PS 0 | CS 24 | GS 0
Shaders: VS 0 | PS 0 | CS 25 | GS 0
Shaders: VS 0 | PS 0 | CS 26 | GS 0
Shaders: VS 0 | PS 0 | CS 27 | GS 0
Shaders: VS 0 | PS 0 | CS 28 | GS 0
Shaders: VS 0 | PS 0 | CS 29 | GS 0
Shaders: VS 0 | PS 0 | CS 30 | GS 0
Shaders: VS 0 | PS 0 | CS 31 | GS 0
Shaders: VS 0 | PS 0 | CS 32 | GS 0
Shaders: VS 0 | PS 0 | CS 33 | GS 0
Shaders: VS 0 | PS 0 | CS 34 | GS 0
Shaders: VS 0 | PS 0 | CS 35 | GS 0
Shaders: VS 1 | PS 0 | CS 35 | GS 0
Shaders: VS 1 | PS 0 | CS 36 | GS 0
Shaders: VS 1 | PS 0 | CS 37 | GS 0
Shaders: VS 1 | PS 0 | CS 38 | GS 0
Shaders: VS 1 | PS 0 | CS 39 | GS 0
Shaders: VS 1 | PS 0 | CS 40 | GS 0
Shaders: VS 1 | PS 0 | CS 41 | GS 0
Shaders: VS 1 | PS 0 | CS 42 | GS 0
Shaders: VS 1 | PS 0 | CS 43 | GS 0
Shaders: VS 1 | PS 0 | CS 44 | GS 0
Shaders: VS 1 | PS 0 | CS 45 | GS 0
Shaders: VS 1 | PS 0 | CS 46 | GS 0
Shaders: VS 1 | PS 0 | CS 47 | GS 0
Shaders: VS 1 | PS 0 | CS 48 | GS 0
--- Build ---
Source build
865cc0d--- Stack Trace ---
[0] 0000000140501749
[1] 000000014008859a
[2] 000000014004a91c
[3] 0000000140054a9e
[4] 0000000140094e4b
[5] 000000014009646e
[6] 00000001400b92c0
[7] 000000014002b4f3
[8] 000000014002b6d8
[9] 000000014000aa73
[10] 00000001400294ff
[11] 00000001400288dd
[12] 000000014002837b
--- Error ---
image format does not support required usage: format=141 type=1 usage=0xf flags=0x188 samples=1
in C:\Users\Oualid\Desktop\kyty-ref\src\graphics\host_gpu\renderer\image\image.cpp:690
@larfy298 on GitHub · 2026-09-10 02:09 UTC · original
@danielrdz21 try the later build posted in this thread
@TarkusR on GitHub · 2026-09-10 14:04 UTC · original
rebased on
3da05ef@ChronoRPG on GitHub · 2026-09-10 20:02 UTC · original
Yes Fix with this version KytyPS5-demons-souls-shaders-688d485-win64.zip
@Nmzik on GitHub · 2026-09-13 08:35 UTC · original
@TarkusR Thanks a lot for the PR. I didn’t forget about it, we just need some time to properly integrate it. Working on another stuff for now
@nzc20090108 on GitHub · 2026-09-13 14:39 UTC · original
@TarkusR on GitHub · 2026-09-13 15:32 UTC · original
@nzc20090108 its kind of out of scope for this pr, im gonna work on performance first so that testing can go further
@pellaaa93 on GitHub · 2026-09-14 13:23 UTC · original
Are there currently working options for Nvidia graphics cards? I tried the attached build on Windows 11 with a 5950X and an RTX 5090, but the game crashes right after the character creation screen.
@TarkusR on GitHub · 2026-09-14 13:32 UTC · original
That build was a test build for the issues on amd hardware, it already worked on nvidia hardware before that, also can i get the error message/the logs ?
@pellaaa93 on GitHub · 2026-09-14 14:06 UTC · original · edited 2026-09-14 14:08 UTC
sure, if I use the last generic version "KytyPS5-2026-09-14-a9ae04c" the game doesn't even boot and gives this error:
...
Shaders: VS 2 | PS 1 | CS 95 | GS 0 | LS 0 | HS 0 | TES 0
Shaders: VS 2 | PS 1 | CS 96 | GS 0 | LS 0 | HS 0 | TES 0
--- Build ---
Official build KytyPS5-2026-09-14-a9ae04c
--- Error ---
shader resource tracking: hash=0x9fb5cc274b5e4f82 stage=compute pc=0x00001044 GetImageResource dword 0 is not a valid runtime value in D:\a\KytyPS5\KytyPS5\src\graphics\shader\recompiler\ir\passes\ResourceTracking.cpp:167
if i use the version you provided above, it boots, enter main menu but after the character creation part it crashes during the loading screen (the one with grey clouds/smoke) and gives this error:
...
Shaders: VS 32 | PS 58 | CS 239 | GS 0
Shaders: VS 32 | PS 58 | CS 240 | GS 0
Shaders: VS 32 | PS 58 | CS 241 | GS 0
--- Build ---
Source build 688d485
--- Stack Trace ---
--- Error ---
Unhandled host exception: type=1 code=3221225477 pc=0x0000000900ad92d6 (eboot.bin+0xad92d6) access=2 address=0x0000000000000018 (outside any loaded module) code=8968185b415c415d415e415f5dc3cccc
in src\loader\runtimeLinker.cpp:837
Shaders: VS 32 | PS 58 | CS 242 | GS 0
game version is: PPSA01341 – EUR (v01.007)
I attached also Kyty settings (only changed username and language)
@TarkusR on GitHub · 2026-09-14 14:09 UTC · original · edited 2026-09-14 14:19 UTC
@pellaaa93 Enable windows Sysv red zone crash protection and see if it works on my build, the official build doesnt have my commits yet so its normal (i guess ?)
@pellaaa93 on GitHub · 2026-09-14 14:21 UTC · original · edited 2026-09-14 14:22 UTC
enabling that option it rendered succesfully the graphics in the loading screen (looks like a campfire) before the grey smoke screen but then it crashed again:
...
Shaders: VS 51 | PS 78 | CS 260 | GS 0
Shaders: VS 51 | PS 78 | CS 261 | GS 0
Shaders: VS 51 | PS 78 | CS 262 | GS 0
--- Build ---
Source build 688d485
--- Stack Trace ---
[0] 0000000140501689
[1] 00000001405017a2
[2] 00000001400906ff
[3] 00000001400634df
[4] 000000014003a0fb
[5] 0000000140039ec3
[6] 000000014003cb56
[7] 000000014003bfdc
[8] 000000014023d2a2
[9] 000000014002b5fc
[10] 000000014000aa73
[11] 00000001400294ff
[12] 00000001400288dd
--- Fatal Error ---
Not implemented (result != vk::Result::eSuccess) in src\graphics\host_gpu\renderer\masterSemaphore.cpp:53
@TarkusR on GitHub · 2026-09-14 14:31 UTC · original · edited 2026-09-14 14:34 UTC
can i get the _kyty.txt (enable shader log to file) i'll check when i get home.
Also if anyone has the same hardware (RTX 5090) and can reproduce this please do tell me.
@pellaaa93 on GitHub · 2026-09-14 14:40 UTC · original · edited 2026-09-14 15:11 UTC
the generated _kyty.txt file size was 450mb on first try and 225mb on second one... wtf? lol
EDIT: I removed everything, deleted Kyty settings file and cleaned gpu shaders just to be sure, still crashing, and -kyty.txt is 700mb now 😅

btw it always crash here: Shaders: Shaders: VS 48 | PS 78 | CS 261 | GS 0
here few lines before the crash using console logging:
log.txt
@cinnamonizer on GitHub · 2026-09-14 15:10 UTC · original · edited 2026-09-14 15:13 UTC
Don't use official builds, @pellaaa93. This game won't boot on those (yet). Download the PR build above and run these settings:
[GlobalConfiguration] name= basedir= game_path= custom_settings=false screen_resolution=R1920X1080 user_name=Kyty user_id=1000 present_mode=Immediate fullscreen_enabled=false readback_linear_images=false vblank_frequency=60 console_language=1 vulkan_validation_enabled=false shader_validation_enabled=false shader_optimization_type=Performance shader_log_direction=Silent shader_log_folder=_Shaders command_buffer_dump_enabled=false command_buffer_dump_folder=_Buffers printf_direction=Silent printf_output_file=_kyty.txt renderdoc_enabled=false red_zone_protection_enabled=true host_input_mapping=@Invalid() elf=eboot.bin gpu_index=-1 profiler_enabled=falseI had the same issue where my game would crash right when the grey fog would appear (using this PR build), before you enter gameplay. But I fixed and don't remember what it was that did it for me. With the settings above I can boot into gameplay fine, it's just a slideshow but that's to be expected.
Edit: I'm on a 5070Ti 5800X.
@pellaaa93 on GitHub · 2026-09-14 15:16 UTC · original
copy pasted your settings in the .ini file but unfortunately it crashes again in the same spot
@cinnamonizer on GitHub · 2026-09-14 15:24 UTC · original · edited 2026-09-14 15:25 UTC
@pellaaa93 I disabled Windows SysV redzone crash protection and I got a crash at the same spot as you with this error message:
--- Build --- Source build 688d485 --- Stack Trace --- --- Error --- Unhandled host exception: type=1 code=3221225477 pc=0x0000000900ad92d6 (eboot.bin+0xad92d6) access=2 address=0x0000000000000018 (outside any loaded module) code=8968185b415c415d415e415f5dc3cccc in src\loader\runtimeLinker.cpp:837 Shaders: VS 30 | PS 56 | CS 240 | GS 0 Shaders: VS 30 | PS 57 | CS 240 | GS 0 Shaders: VS 31 | PS 57 | CS 240 | GS 0Edit: When I re-enable that setting, I don't crash anymore.
@pellaaa93 on GitHub · 2026-09-14 15:28 UTC · original
I had that settings enabled already and my error is different from yours, I don't know
@cinnamonizer on GitHub · 2026-09-14 15:36 UTC · original
You posted a screenshot above in which that setting showed as being disabled. But if it still crashes and you're certain it's turned on, I'm not sure then. You could try this build: https://github.com/RainKikyou/KytyPS5/actions/runs/34747602960
@pellaaa93 on GitHub · 2026-09-14 15:38 UTC · original
yes it was initially disabled but then OP told me to enable it
@pellaaa93 on GitHub · 2026-09-14 16:09 UTC · original
this one WORKS and with a decent framerate too, WOAAA

@coderabbitai[bot] on GitHub · 2026-09-15 21:32 UTC · original · edited 2026-09-23 19:13 UTC
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
📝 Walkthrough
Walkthrough
The pull request updates guest and host GPU handling, including memory synchronization, indirect dispatch, texture caching, depth/stencil metadata, and compute clears. Shader changes add indirect-image tracking and materialization, waterfall descriptor rewriting, lane-wide operations, formatted stores, and pixel interpolation handling. Build configuration, runtime diagnostics, and regression tests are also updated.
Suggested reviewers:
nmzikMerge Risk: 🟡 Moderate · up to
8a680This change moves shader and rendering work toward running Demon's Souls. However, several paths can still bind the wrong textures or abort shader handling for specific shaders. Some depth-clear paths can also apply an incorrect clear or use an invalid attachment layout. Fix the resource-tracking and depth-clear issues before merging, or accept the risk explicitly given the experimental scope.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring Coverage
Explanation
Docstring coverage is 4.27% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 211 functions across 46 files. (3 skipped: 1 unsupported, 2 too large.)
Comment
@coderabbitai helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-09-15 21:46 UTC · original · edited 2026-09-23 18:57 UTC
On
src/graphics/guest_gpu/command_processor/pm4Handlers.cppline 1355 (outdated):🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
Do not read guest backing after
SyncGpuCleanBackingfails.SyncGpuCleanBackingreturnsfalsewhen a texture-owned range has GPU-modified data. Each caller logs the failure and still reads that range. This can use stale dispatch dimensions, draw arguments, draw counts, or predicate values.src/graphics/guest_gpu/command_processor/pm4Handlers.cpp#L1344-L1355: deferCpOpDispatchIndirector materialize the range before copyingDispatchIndirectArgs.src/graphics/guest_gpu/command_processor/pm4Handlers.cpp#L1468-L1475: deferCpOpCondExecor materialize the predicate range before dereferencing it.src/graphics/guest_gpu/graphicsRun.cpp#L908-L917: stopDrawIndirectbefore copying unsynchronized arguments.src/graphics/guest_gpu/graphicsRun.cpp#L996-L1004: stopDrawIndirectMultibefore reading an unsynchronized count.src/graphics/guest_gpu/graphicsRun.cpp#L1017-L1026: stopDrawIndirectMultibefore iterating unsynchronized argument records.src/graphics/guest_gpu/graphicsRun.cpp#L1174-L1185: stopDispatchIndirectbefore copying unsynchronized dispatch dimensions.📍 Affects 2 files
src/graphics/guest_gpu/command_processor/pm4Handlers.cpp#L1344-L1355(this comment)src/graphics/guest_gpu/command_processor/pm4Handlers.cpp#L1468-L1475src/graphics/guest_gpu/graphicsRun.cpp#L908-L917src/graphics/guest_gpu/graphicsRun.cpp#L996-L1004src/graphics/guest_gpu/graphicsRun.cpp#L1017-L1026src/graphics/guest_gpu/graphicsRun.cpp#L1174-L1185🤖 Prompt for AI Agents
✅ Addressed in commits
957452dto8a68049@coderabbitai[bot] on GitHub · 2026-09-15 21:46 UTC · original
On
src/graphics/host_gpu/renderer/cache/textureCache.cppline 1286 (outdated):🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Clear the stencil-modified state only after a successful upload.
UploadStencilreturns without uploading for the layouts rejected at Lines 1149-1155. Line 1286 then marks the stale host stencil data as current.Return a success value from
UploadStencil. Clear the state only when the upload succeeds.🤖 Prompt for AI Agents
@ -394,0 +413,4 @@case ShaderRecompiler::Decoder::ImageDimension::Dim2DMsaaArray:desc.info.samples = 4;desc.view_info.type = vk::ImageViewType::e2DArray;break;@coderabbitai[bot] on GitHub · 2026-09-15 21:46 UTC · original · edited 2026-09-23 18:57 UTC
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Preserve the null image dimension and sample count in
TextureCache.These branches create 1D, 3D, array, and multisampled descriptions.
TextureCache::GetNullImageat Lines 516-534 still creates a 2D, single-sample image and caches it only by format.A later
FindViewcan request an incompatible view or reuse a null image with the wrong sample count. Key null images by the required backing shape and construct them fromdesc.🤖 Prompt for AI Agents
✅ Addressed in commits
957452dto8a68049@ -616,1 +654,3 @@if (multisampled) {const auto& limits = m_context.GetGraphics().GetPhysicalDeviceProperties().limits;const char* rejection = nullptr;if (volume ? depth > limits.maxImageDimension3D : image_layers > limits.maxImageArrayLayers) {@coderabbitai[bot] on GitHub · 2026-09-15 21:46 UTC · original
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Validate all dimensions against the matching host limit.
This condition checks only
depthfor a 3D image and onlyimage_layersfor other images. It does not check 3D width or height. It also does not check 1D and 2D dimensions againstmaxImageDimension1DormaxImageDimension2D.An oversized descriptor can proceed to Vulkan image creation and fail on hosts with smaller limits.
🤖 Prompt for AI Agents
@ -128,0 +153,4 @@if (program.info.buffers.size() != 1 || resources.buffers.size() != 1 ||!program.info.images.empty() || !program.info.samplers.empty() ||program.info.uses_dma || input.dispatch_thread_dimensions || mode != 0x41u ||user_data.size() != 10 || program.user_data_base != 0) {@coderabbitai[bot] on GitHub · 2026-09-15 21:46 UTC · original · edited 2026-09-23 18:57 UTC
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
Require proof of the shader’s store value before consuming the dispatch.
ResolveComputePatternFillidentifies a pattern-fill shader from resource counts, user data, and dispatch shape. It does not inspect the store expression or another stable shader identity.A shader with the same interface can write computed per-thread values. This fast path would suppress that dispatch and replace its output with one clear value. Use an IR analysis result that proves the repeated store value, or restrict this optimization to an exact recognized shader.
🤖 Prompt for AI Agents
✅ Addressed in commits
957452dto8a68049@ -517,2 +518,2 @@depth.depth_load_clear_enable = depth.depth_clear_enable || meta_clear;if (meta_clear &&cache.IsMetaCleared(metadata.range.address, depth.desc.view_info.base_layer,&htile_fill, &htile_fill_known);@coderabbitai[bot] on GitHub · 2026-09-15 21:46 UTC · original
🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift
Validate HTile clear state for every layer in the attachment view.
This query checks only
base_layer. The derived load clear applies to allview.layer_countlayers, and Line 553 consumes only the base-layer metadata bit.If the other layers are not cleared or have different fill values, the load operation overwrites valid depth or stencil data. Enable one load clear only when every selected layer has compatible metadata. Otherwise, clear the qualifying layers separately.
🤖 Prompt for AI Agents
@ -519,0 +529,4 @@if (depth_uniform) {depth.depth_clear_value = htile_fill_depth_value(htile_fill, stencil_compressed);}depth.depth_load_clear_enable = depth.depth_clear_enable || depth_meta_clear;@coderabbitai[bot] on GitHub · 2026-09-15 21:46 UTC · original
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Use a writable depth layout when a metadata load clear is enabled.
This assignment can enable
depth_load_clear_enablewhiledepth_write_enableis false.depth_attachment_layoutthen selects a read-only depth layout, butattachment.depth_clearrequests a load-operation clear.Treat
depth_load_clear_enableas a depth write when selecting the attachment layout.🤖 Prompt for AI Agents
@coderabbitai[bot] on GitHub · 2026-09-15 21:46 UTC · original · reviewed
Actionable comments posted: 7
🤖 Prompt for all review comments with AI agents
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Advanced
Run ID:
db5b5b53-06c1-4a0c-9a76-40df7b25e22e📥 Commits
Reviewing files that changed from the base of the PR and between
e6156bef05and 629600b220969380748d6d3c07f326e8abbd74be.📒 Files selected for processing (50)
CMakeLists.txtsrc/graphics/guest_gpu/command_processor/commandProcessor.hsrc/graphics/guest_gpu/command_processor/pm4Handlers.cppsrc/graphics/guest_gpu/graphicsRun.cppsrc/graphics/guest_gpu/tile.cppsrc/graphics/guest_gpu/tile.hsrc/graphics/host_gpu/renderer/cache/bufferCache.cppsrc/graphics/host_gpu/renderer/cache/textureCache.cppsrc/graphics/host_gpu/renderer/cache/textureCache.hsrc/graphics/host_gpu/renderer/depthRenderTarget.cppsrc/graphics/host_gpu/renderer/depthRenderTarget.hsrc/graphics/host_gpu/renderer/image/image.hsrc/graphics/host_gpu/renderer/pipeline/descriptors.cppsrc/graphics/host_gpu/renderer/pipeline/pipelineCache.cppsrc/graphics/host_gpu/renderer/render.hsrc/graphics/host_gpu/renderer/renderCompute.cppsrc/graphics/host_gpu/renderer/renderDraw.cppsrc/graphics/presentation/videoOut.cppsrc/graphics/shader/recompiler/ShaderRecompiler.cppsrc/graphics/shader/recompiler/backend/spirv/SpirvEmitter.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterFlow.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterHelpers.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterInstructions.hsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterInternal.hsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterMemory.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterMemoryHelpers.cppsrc/graphics/shader/recompiler/frontend/translate/Translate.cppsrc/graphics/shader/recompiler/ir/IREmitter.cppsrc/graphics/shader/recompiler/ir/IREmitter.hsrc/graphics/shader/recompiler/ir/ShaderIR.hsrc/graphics/shader/recompiler/ir/opcodes/ValueOpcodes.incsrc/graphics/shader/recompiler/ir/passes/DeadCodeElimination.cppsrc/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cppsrc/graphics/shader/recompiler/ir/passes/ResourceMaterialization.hsrc/graphics/shader/recompiler/ir/passes/ResourceTracking.cppsrc/graphics/shader/recompiler/ir/passes/ShaderInfoCollection.cppsrc/graphics/shader/recompiler/ir/passes/SrtWalker.cppsrc/graphics/shader/recompiler/ir/passes/SrtWalker.hsrc/graphics/shader/recompiler/ir/passes/WaterfallDescriptor.cppsrc/graphics/shader/recompiler/ir/passes/WaterfallDescriptor.hsrc/graphics/shader/shader.hsrc/graphics/shader/shaderPixelParameter.cppsrc/kernel/memory.cppsrc/kernel/memory.hsrc/loader/redZonePatcher.cppsrc/loader/runtimeLinker.cpptests/ResourceTrackingTests.cpptests/ScalarProvenanceTests.cpptests/ShaderRecompilerComputeTests.cpptests/shaderCfgTests.cppIncluded review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
@Kody-Schram on GitHub · 2026-09-19 00:01 UTC · original
Since nobody seems to be talking about Linux, let me be the first lmao.
Running from linux build at: https://github.com/RainKikyou/KytyPS5/actions/runs/34747602960, I'm having similar success as others earlier in the comments.
However, building from this PRs current head commit, my game always crashes after the initial intro cutscene
Initialized: Config
Initialized: Log
Initialized: Timer
Initialized: Pthread
Initialized: Profiler
Initialized: Network
Initialized: Memory
Initialized: FileSystem
Initialized: Controller
Initialized: Audio
Vulkan pipeline cache: disabled (dirty build)
Initialized: Graphics
Title ID: PPSA01341
version = 13
AJM codec=1, name=ATRAC9 decoder
Shaders: VS 0 | PS 0 | CS 1 | GS 0 | LS 0 | HS 0 | TES 0
Shaders: VS 0 | PS 0 | CS 2 | GS 0 | LS 0 | HS 0 | TES 0
Shaders: VS 0 | PS 0 | CS 3 | GS 0 | LS 0 | HS 0 | TES 0
Shaders: VS 0 | PS 0 | CS 4 | GS 0 | LS 0 | HS 0 | TES 0
...
Shaders: VS 146 | PS 212 | CS 575 | GS 0 | LS 0 | HS 0 | TES 0
Shaders: VS 147 | PS 212 | CS 575 | GS 0 | LS 0 | HS 0 | TES 0
Shaders: VS 148 | PS 212 | CS 575 | GS 0 | LS 0 | HS 0 | TES 0
Shaders: VS 149 | PS 212 | CS 575 | GS 0 | LS 0 | HS 0 | TES 0
--- Build ---
Source build 629600b-dirty
--- Error ---
failed to create image: extent=2048x2048x1 format=145 layers=1 levels=12
in /home/kodys/Code/KytyPS5/src/graphics/host_gpu/renderer/image/image.cpp:691
My settings are:
[GlobalConfiguration]
name=
basedir=
game_path=
custom_settings=false
screen_resolution=R1920X1080
user_name=MoriBuntarou
user_id=1000
present_mode=Immediate
fullscreen_enabled=false
readback_linear_images=false
vblank_frequency=60 console_language=1
vulkan_validation_enabled=false
shader_validation_enabled=false
shader_optimization_type=Performance
shader_log_direction=Silent
shader_log_folder=_Shaders
command_buffer_dump_enabled=false
command_buffer_dump_folder=_Buffers
printf_direction=Silent
printf_output_file=_kyty.txt
renderdoc_enabled=false
red_zone_protection_enabled=true
host_input_mapping=@Invalid()
elf=eboot.bin
gpu_index=-1
profiler_enabled=false
@ -1334,0 +1380,4 @@image.usage.render_target ? "render_target " : "",image.usage.depth_target ? "depth_target " : "", image.IsGpuModified() ? 1 : 0,image.IsCpuDirty() ? 1 : 0, view_mip, view_layer);}@coderabbitai[bot] on GitHub · 2026-09-23 19:12 UTC · original
🚀 Performance & Scalability | 🟡 Minor | ⚡ Quick win
Limit the depth-tiled shape-mismatch log to one entry per address.
This
LOGFruns on everyFindImagecall that resolves a mismatched depth-tiled view. A mismatch that persists between draws writes one long line per bind, and it does this while the code holdsm_lock. The other diagnostics in this path log once per address:m_depth_tiled_reports,m_clamped_mip_views, andm_unrepresentable_textures. This log adds I/O to a hot path, and the PR already reports poor performance.Add a per-address set, or use a bounded atomic counter.
♻️ Proposed change
Declare
std::unordered_set<uint64_t> m_depth_shape_reports;inTextureCache.@ -100,0 +112,4 @@"%s\n",label, hash, report.dropped_candidates, report.dropped_shapes,report.dropped_summary.c_str());}@coderabbitai[bot] on GitHub · 2026-09-23 19:12 UTC · original
🚀 Performance & Scalability | 🟡 Minor | ⚡ Quick win
Limit the dropped-candidate log to changed results.
ReportMaterializationruns on the cache-hit path at Lines 325-328, which means on every draw.FinishIndirectImagesetsdropped_summarywhenever a table has more than one class. One mixed table therefore writes a multi-line log entry on every draw that uses the shader. The logging adds I/O to a hot path that is already slow.♻️ Proposed change
Alternatively, log only on a new entry or when the summary differs from the previous summary for the entry.
📝 Committable suggestion
@ -133,0 +168,4 @@result.cube = DescriptorIsCube(descriptor);result.numeric_class = Prospero::SampledTextureNumericClass(format);return result;}@coderabbitai[bot] on GitHub · 2026-09-23 19:12 UTC · original
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Classify dense candidates with the same compatibility rule as
BuildResourceSpecialization.BuildResourceSpecializationaccepts indirect candidates that differ only betweenDim2DandDim2DArray(Lines 808-828).DescriptorClassputs the exactdimensionandcubeintoIndirectImageClass.FinishIndirectImagethen treats 2D and 2D-array candidates as separate classes. Withover_approximates == true, it zeroes every candidate outside the dominant class.Trigger: a shader requests an array dimension, and the table mixes
kColor2DandkColor2DArraydescriptors. The minority descriptors become null textures, although specialization would accept them.🐛 Proposed fix
The fix does not change
cube. Normalizecubetoo if the specialization check is meant to accept it.📝 Committable suggestion
@ -615,0 +750,4 @@if (extra + memory->offset < dword * sizeof(uint32_t)) {return false;}const uint32_t immediate = extra + memory->offset - dword * sizeof(uint32_t);@coderabbitai[bot] on GitHub · 2026-09-23 19:12 UTC · original
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Reject negative immediate offsets in
MatchDenseTable.EvaluateRawReadtreatsMemoryInfo::offsetas a signedint32_tfor scalar-address reads.MatchDenseTableadds it as auint32_t, so a negative immediate becomes a table offset near 4 GiB.MaterializeDenseIndirectImagethen reads frombase + 0xFFFFxxxxinstead ofbase - x. The resulting descriptors are wrong or unreadable.TryMakeIndirectImagealready rejectsmemory->offset > INT32_MAXfor this reason.🐛 Proposed fix
📝 Committable suggestion
@ -615,0 +1213,4 @@!MemoryIndexBelongsTo(memory_index, *load)) {reason = "per-lane key is not a 32-bit address load";return false;}@coderabbitai[bot] on GitHub · 2026-09-23 19:12 UTC · original
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 6984
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 42246
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 41620
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 42076
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 401
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 11657
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 12507
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 2136
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 1076
Add the load offset to
selector_offset.When the address-probe path matches a
LoadAddressU32with a nonzeroMemoryInfo::offset,MatchReadLaneProbestores only the affine bias.GuestAddressaddsMemoryInfo::offsetat runtime, butMaterializeAddressProbeIndirectImagedoes not. Materialization can therefore read the wrong record keys and bind incorrect candidate textures.Suggested fix
@ -615,0 +1291,4 @@return true;}return false;}@coderabbitai[bot] on GitHub · 2026-09-23 19:12 UTC · original
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Require the key comparison to guard the handle block in
MatchKeyBound.MatchKeyBoundaccepts anyULessThan32(key, imm)use of the key. It does not check that the comparison controls the block that uses the image handle.MatchFindLsbKeyBoundandMatchLoopKeyBoundboth requireBlockRunsOnlyWhen(*handle.Parent(), *compare).TryMakeDenseIndirectImagetriesMatchKeyBoundfirst, so an unrelated comparison takes priority over those guarded matchers.Trigger: a shader compares the key against a small constant on another path. Examples are
if (key < 4)in a sibling branch, or a comparison that feeds a select. The table is then enumerated only for keys[0, limit). At runtime, a key at or abovelimithas no mapping entry, so the shader binds a wrong candidate texture.🐛 Proposed fix
Update the caller at Line 1345 to
MatchKeyBound(*key, handle, bound).@ -615,0 +1338,4 @@if (key == nullptr) {return false;}uint32_t material_source = 0;@coderabbitai[bot] on GitHub · 2026-09-23 19:12 UTC · original
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Initialize
material_sourcetoUINT32_MAXfor dense plans that have no material table.TryMakeDenseIndirectImagestartsmaterial_sourceat0. OnlyMatchReadLaneProbeoverwrites it. The key-bound, FindLsb and loop-bound paths therefore store.material_source = 0, not the "no source" valueUINT32_MAXthatDescriptorSource::IndirectImageuses by default.ExtractResourcePlan(ResourceMaterialization.cpp Lines 1172-1173) callsMarkCleanFlatSlots(plan, Source(plan, material_source), ...). That call marks the flat SRT slots of the unrelated descriptor source 0 as clean.RefreshFlatBuffermust then read those slots through the strictread_specialization_memoryreader. If the strict reader fails for that memory,MaterializeResourcesfails andReportMaterializationcallsEXIT. At minimum, extra clean reads run on every draw.🐛 Proposed fix
Also applies to: 1385-1385
@ -782,0 +802,4 @@if (g_faulting_linker->FindProgramByAddr(vaddr + offset) == nullptr) {break;}bytes += fmt::format("{:02x}", *reinterpret_cast<const uint8_t*>(vaddr + offset));@coderabbitai[bot] on GitHub · 2026-09-23 19:12 UTC · original
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Check readability before reading faulting code.
FindProgramByAddrconfirms that the PC falls inside an ELF segment. It does not confirm that the page is readable. If an unhandled execute fault occurs on an inaccessible page inside that segment, this dereference faults again in the exception handler and can prevent the original fault report. Probe each byte before reading it, and stop when the page is unreadable.@coderabbitai[bot] on GitHub · 2026-09-23 19:13 UTC · original · reviewed
Actionable comments posted: 8
🧹 Nitpick comments (2)
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
4e9d9503-25cc-4786-bd40-6df4e04b1b4d📥 Commits
Reviewing files that changed from the base of the PR and between 629600b220969380748d6d3c07f326e8abbd74be and
8a68049272.📒 Files selected for processing (37)
CMakeLists.txtsrc/graphics/guest_gpu/command_processor/pm4Handlers.cppsrc/graphics/guest_gpu/graphicsRun.cppsrc/graphics/guest_gpu/tile.cppsrc/graphics/guest_gpu/tile.hsrc/graphics/host_gpu/renderer/cache/bufferCache.cppsrc/graphics/host_gpu/renderer/cache/textureCache.cppsrc/graphics/host_gpu/renderer/cache/textureCache.hsrc/graphics/host_gpu/renderer/depthRenderTarget.cppsrc/graphics/host_gpu/renderer/image/image.hsrc/graphics/host_gpu/renderer/pipeline/descriptors.cppsrc/graphics/host_gpu/renderer/pipeline/pipelineCache.cppsrc/graphics/host_gpu/renderer/render.hsrc/graphics/host_gpu/renderer/renderCompute.cppsrc/graphics/host_gpu/renderer/renderDraw.cppsrc/graphics/presentation/videoOut.cppsrc/graphics/shader/recompiler/ShaderRecompiler.cppsrc/graphics/shader/recompiler/backend/spirv/SpirvEmitter.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterFlow.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterHelpers.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterInternal.hsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterMemory.cppsrc/graphics/shader/recompiler/frontend/translate/Translate.cppsrc/graphics/shader/recompiler/ir/ShaderIR.hsrc/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cppsrc/graphics/shader/recompiler/ir/passes/ResourceMaterialization.hsrc/graphics/shader/recompiler/ir/passes/ResourceTracking.cppsrc/graphics/shader/recompiler/ir/passes/SrtWalker.cppsrc/graphics/shader/recompiler/ir/passes/SrtWalker.hsrc/graphics/shader/shader.hsrc/kernel/memory.cppsrc/loader/redZonePatcher.cppsrc/loader/runtimeLinker.cpptests/ResourceTrackingTests.cpptests/ScalarProvenanceTests.cpptests/ShaderRecompilerComputeTests.cpptests/shaderCfgTests.cpp💤 Files with no reviewable changes (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
@Nmzik on GitHub · 2026-09-24 07:25 UTC · original
@TarkusR Credited.
Pull request closed