[GAME STATUS]: Demon's Souls --- Error --- scalar resource reads overlap a shader buffer write #1806

Closed
opened 2026-11-26 10:06:14 +00:00 by github-bot · 5 comments
Owner

@⁠ft1704 on GitHub · 2026-10-22 00:22 UTC · original

Game title

Demon's Souls

Game ID / serial

PPSA01341

KytyPS5 version

0.3.0 a3aece2

Compatibility status

Logo

Last working build / first broken build

No response

Result details

The game launches and shader compilation begins in the console. When it reaches CS 111, an error appears: "scalar resource reads overlap a shader buffer write." I checked this three times.

Image

Steps to reproduce the result

  1. Open KytyPS5
  2. Boot the game
  3. Waiting for shaders to compile

Expected behavior

I guess the shaders need to compile completely for me to see the main menu

OS

Windows 10 Home 22H2

CPU

i5-9400F

GPU

NVIDIA GeForce RTX 2060 Super, driver 616.56

RAM / VRAM

16 GB DDR4 RAM / 8 GB VRAM

Log file upload

log.txt

Screenshots/video

No response

Extra notes

No response

**@⁠ft1704** on GitHub · 2026-10-22 00:22 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1806) ### Game title Demon's Souls ### Game ID / serial PPSA01341 ### KytyPS5 version 0.3.0 a3aece2 ### Compatibility status Logo ### Last working build / first broken build _No response_ ### Result details The game launches and shader compilation begins in the console. When it reaches CS 111, an error appears: "scalar resource reads overlap a shader buffer write." I checked this three times. <img width="780" height="515" alt="Image" src="https://github.com/user-attachments/assets/9407666b-c7c0-4d7c-a577-4fafe02da38e" /> ### Steps to reproduce the result 1. Open KytyPS5 2. Boot the game 3. Waiting for shaders to compile ### Expected behavior I guess the shaders need to compile completely for me to see the main menu ### OS Windows 10 Home 22H2 ### CPU i5-9400F ### GPU NVIDIA GeForce RTX 2060 Super, driver 616.56 ### RAM / VRAM 16 GB DDR4 RAM / 8 GB VRAM ### Log file upload [log.txt](https://github.com/user-attachments/files/33794029/log.txt) ### Screenshots/video _No response_ ### Extra notes _No response_
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:06:14 +00:00
Author
Owner

@⁠theantipopau on GitHub · 2026-10-22 03:24 UTC · original

This is the same exit as #1768 and not a shader-compilation failure: the message comes from RenderExecutor::FindBuffers / CommitBindings in src/graphics/host_gpu/renderer/pipeline/descriptors.cpp, which aborts when a buffer captured as a specialization (SRT) read overlaps a range the same dispatch is treated as writing. The build reaching CS 111 is just the first dispatch where the two ranges meet; the emulator drops out instead of compiling the shader.

Two things worth knowing for this report:

  • It is not specific to your GPU. #1768 hit it on Intel Arc, #1738 on an RTX 5090 with UFC 6, and it appears with several Demon's Souls builds (#1780, #1746). Driver choice changes which dispatch trips it, not whether the check exists.
  • It currently has no fix on main. #1680 proposed logging and continuing, and #1738 proposed bounding the write range to the bytes the shader binary can actually reach, but both are closed and unmerged. The check on main still treats an unbounded (NumRecords == UINT32_MAX) write descriptor as covering its whole bound range, so a read elsewhere in that same 56-byte struct is reported as an overlap even when the shader only writes a few dwords of it.

So there is nothing to change in your configuration for this one. If you can attach log.txt with the shader hash it stops at (the line above the error), that is useful for whoever picks the fix up: the failing dispatch's write offsets are what decide whether the strict check is a false positive here.

**@⁠theantipopau** on GitHub · 2026-10-22 03:24 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1806#issuecomment-6331901481) This is the same exit as #1768 and not a shader-compilation failure: the message comes from `RenderExecutor::FindBuffers` / `CommitBindings` in `src/graphics/host_gpu/renderer/pipeline/descriptors.cpp`, which aborts when a buffer captured as a specialization (SRT) read overlaps a range the same dispatch is treated as writing. The build reaching CS 111 is just the first dispatch where the two ranges meet; the emulator drops out instead of compiling the shader. Two things worth knowing for this report: - **It is not specific to your GPU.** #1768 hit it on Intel Arc, #1738 on an RTX 5090 with UFC 6, and it appears with several Demon's Souls builds (#1780, #1746). Driver choice changes which dispatch trips it, not whether the check exists. - **It currently has no fix on `main`.** #1680 proposed logging and continuing, and #1738 proposed bounding the write range to the bytes the shader binary can actually reach, but both are closed and unmerged. The check on `main` still treats an unbounded (`NumRecords == UINT32_MAX`) write descriptor as covering its whole bound range, so a read elsewhere in that same 56-byte struct is reported as an overlap even when the shader only writes a few dwords of it. So there is nothing to change in your configuration for this one. If you can attach `log.txt` with the shader hash it stops at (the line above the error), that is useful for whoever picks the fix up: the failing dispatch's write offsets are what decide whether the strict check is a false positive here.
Author
Owner

@⁠ft1704 on GitHub · 2026-10-22 15:37 UTC · original

This is the same exit as #1768 and not a shader-compilation failure: the message comes from RenderExecutor::FindBuffers / CommitBindings in src/graphics/host_gpu/renderer/pipeline/descriptors.cpp, which aborts when a buffer captured as a specialization (SRT) read overlaps a range the same dispatch is treated as writing. The build reaching CS 111 is just the first dispatch where the two ranges meet; the emulator drops out instead of compiling the shader.

Two things worth knowing for this report:

So there is nothing to change in your configuration for this one. If you can attach log.txt with the shader hash it stops at (the line above the error), that is useful for whoever picks the fix up: the failing dispatch's write offsets are what decide whether the strict check is a false positive here.

I have already attached the log. May I ask why the game might be launching for other people?

**@⁠ft1704** on GitHub · 2026-10-22 15:37 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1806#issuecomment-6344742005) > This is the same exit as [#1768](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/1768) and not a shader-compilation failure: the message comes from `RenderExecutor::FindBuffers` / `CommitBindings` in `src/graphics/host_gpu/renderer/pipeline/descriptors.cpp`, which aborts when a buffer captured as a specialization (SRT) read overlaps a range the same dispatch is treated as writing. The build reaching CS 111 is just the first dispatch where the two ranges meet; the emulator drops out instead of compiling the shader. > > Two things worth knowing for this report: > > * **It is not specific to your GPU.** [Game crashes on Intel Arc GPU with "scalar resource reads overlap a shader buffer write" #1768](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/1768) hit it on Intel Arc, [renderer: check scalar reads against the bytes a shader buffer write can reach #1738](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1738) on an RTX 5090 with UFC 6, and it appears with several Demon's Souls builds ([Game Emulation Status Report: Demon's Souls #1780](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/1780), [[GAME STATUS]: Demon's Souls #1746](https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/1746)). Driver choice changes which dispatch trips it, not whether the check exists. > * **It currently has no fix on `main`.** [graphics: log and continue on scalar-read/buffer-write overlap #1680](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1680) proposed logging and continuing, and [renderer: check scalar reads against the bytes a shader buffer write can reach #1738](https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1738) proposed bounding the write range to the bytes the shader binary can actually reach, but both are closed and unmerged. The check on `main` still treats an unbounded (`NumRecords == UINT32_MAX`) write descriptor as covering its whole bound range, so a read elsewhere in that same 56-byte struct is reported as an overlap even when the shader only writes a few dwords of it. > > So there is nothing to change in your configuration for this one. If you can attach `log.txt` with the shader hash it stops at (the line above the error), that is useful for whoever picks the fix up: the failing dispatch's write offsets are what decide whether the strict check is a false positive here. I have already attached the log. May I ask why the game might be launching for other people?
Author
Owner

@⁠powerhousepr on GitHub · 2026-10-23 06:27 UTC · original

This is happening to me as well. I am on a RTX 4090 Ryzen 9950X3D build

**@⁠powerhousepr** on GitHub · 2026-10-23 06:27 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1806#issuecomment-6358920260) This is happening to me as well. I am on a RTX 4090 Ryzen 9950X3D build
Author
Owner

@⁠powerhousepr on GitHub · 2026-10-23 06:36 UTC · original · edited 2026-10-23 08:01 UTC

I have already attached the log. May I ask why the game might be launching for other people?

OK!! I was able to get it running using KyTyPLUS but once in game it has visual bugs and it crashes. Another KyTyps5 build that seems to do much better is the chenxiao07 KyTyPS5 builds which are much different than these ones. That version actually does shader per-compilation before the game starts or you can skip it straight in to game.

Edit: YES i can confirmed the latest build of chenxiao07** KyTyPS5 runs the game to perfection, no visual glitches. Make sure to do the Pre compiling shader first and let it finish and then launch the game.

**@⁠powerhousepr** on GitHub · 2026-10-23 06:36 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1806#issuecomment-6359047303) · edited 2026-10-23 08:01 UTC > I have already attached the log. May I ask why the game might be launching for other people? OK!! I was able to get it running using KyTyPLUS but once in game it has visual bugs and it crashes. Another KyTyps5 build that seems to do much better is the **_chenxiao07_** _KyTyPS5_ builds which are much different than these ones. That version actually does shader per-compilation before the game starts or you can skip it straight in to game. Edit: YES i can confirmed the latest build of _chenxiao07_** _KyTyPS5_ runs the game to perfection, no visual glitches. Make sure to do the Pre compiling shader first and let it finish and then launch the game.
Author
Owner

@⁠ft1704 on GitHub · 2026-10-23 14:43 UTC · original

6. > I have already attached the log. May I ask why the game might be launching for other people?

    OK!! I was able to get it running using KyTyPLUS but once in game it has visual bugs and it crashes. Another KyTyps5 build that seems to do much better is the **_chenxiao07_** _KyTyPS5_ builds which are much different than these ones. That version actually does shader per-compilation before the game starts or you can skip it straight in to game.
    Edit: YES i can confirmed the latest build of _chenxiao07_** _KyTyPS5_  runs the game to perfection, no visual glitches. Make sure to do the Pre compiling shader first and let it finish and then launch the game.

Thanks, I'll definitely try this fork. Of course, with my CPU, I can't expect anything good from the emulation quality, but still.

**@⁠ft1704** on GitHub · 2026-10-23 14:43 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1806#issuecomment-6367539447) > 6\. > I have already attached the log. May I ask why the game might be launching for other people? > > > OK!! I was able to get it running using KyTyPLUS but once in game it has visual bugs and it crashes. Another KyTyps5 build that seems to do much better is the **_chenxiao07_** _KyTyPS5_ builds which are much different than these ones. That version actually does shader per-compilation before the game starts or you can skip it straight in to game. > Edit: YES i can confirmed the latest build of _chenxiao07_** _KyTyPS5_ runs the game to perfection, no visual glitches. Make sure to do the Pre compiling shader first and let it finish and then launch the game. Thanks, I'll definitely try this fork. Of course, with my CPU, I can't expect anything good from the emulation quality, but still.
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#1806
No description provided.