Fix/shader loader fixes #542

Closed
github-bot wants to merge 4 commits from gh-pr/542/head into gh-pr/542/base
Owner

@⁠shadowbeat070 on GitHub · 2026-09-09 11:28 UTC · original
shadowbeat070:fix/shader-loader-fixes → main · +679 −107 · 14 files · 4 commits · closed without merging

4 miscellaneous to fix graphical issues and missing implemenations.

Summary

  • a6342b7 graphics: clear render target with over 32 layers: The per layer metedata cleare mask was 32 bits wide which made a 64 wide slice skip the DCC clear entirely.

  • 352bf3f shader: decode scalar conditional 32-bit moves: Adds the missing S_CMOV_B32 scalar opcode to the GCN decoder, so shaders using it no longer hit an unsupported instruction.

  • 234d015 loader: see red zone kept in a frame-pointer frame: Red zone detection only recognized RSP as a stack pointer, so a leaf function keeping its red zone at [rbp - n] got no protection at all.

  • c772ca2 shader: apply image_sample texel offsets: Fixes texel offsets being silently dropped on image_sample_*_o. SPIR-V cannot express a runtime offset on a sample: ConstOffset requires a compile-time constant, and the dynamic Offset operand is legal only for gather.

PR follows contribution guidelines and the Windows build is verified.

**@⁠shadowbeat070** on GitHub · 2026-09-09 11:28 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/542) `shadowbeat070:fix/shader-loader-fixes` → `main` · +679 −107 · 14 files · 4 commits · closed without merging 4 miscellaneous to fix graphical issues and missing implemenations. ## Summary - a6342b7 graphics: clear render target with over 32 layers: The per layer metedata cleare mask was 32 bits wide which made a 64 wide slice skip the DCC clear entirely. - 352bf3f shader: decode scalar conditional 32-bit moves: Adds the missing S_CMOV_B32 scalar opcode to the GCN decoder, so shaders using it no longer hit an unsupported instruction. - 234d015 loader: see red zone kept in a frame-pointer frame: Red zone detection only recognized RSP as a stack pointer, so a leaf function keeping its red zone at [rbp - n] got no protection at all. - c772ca2 shader: apply image_sample texel offsets: Fixes texel offsets being silently dropped on image_sample_*_o. SPIR-V cannot express a runtime offset on a sample: ConstOffset requires a compile-time constant, and the dynamic Offset operand is legal only for gather. PR follows contribution guidelines and the Windows build is verified.
IsStackPointerRegister resolved to RSP alone, so a leaf keeping its red zone
at [rbp-k] got no coverage at all. Translate frame-pointer displacements into
rsp-relative ones, and resolve the jump tables this title's clang emits.
The per-layer metadata clear mask was 32 bits wide, so a 64-slice
volumetric fog target skipped the DCC clear entirely and accumulated
additively every frame.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:24:56 +00:00
github-bot closed this pull request 2026-11-26 09:24:56 +00:00
Author
Owner

@⁠Nmzik on GitHub · 2026-09-10 07:36 UTC · original

@⁠shadowbeat070 All good. Please include list of games that these fixes apply :)

**@⁠Nmzik** on GitHub · 2026-09-10 07:36 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/542#issuecomment-5614896079) @⁠shadowbeat070 All good. Please include list of games that these fixes apply :)
Author
Owner

@⁠shadowbeat070 on GitHub · 2026-09-10 07:50 UTC · original

@⁠nmzik list of games include: the pathless, stray and silent hill the short message.

**@⁠shadowbeat070** on GitHub · 2026-09-10 07:50 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/542#issuecomment-5615067371) @⁠nmzik list of games include: the pathless, stray and silent hill the short message.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.