graphics: support Standard64KB color target arrays #315

Manually merged
github merged 1 commit from gh-pr/315/head into gh-pr/315/base 2026-11-26 09:16:30 +00:00
Owner

@⁠brandostrong on GitHub · 2026-08-25 03:49 UTC · original
brandostrong:fix/standard64-color-array → main · +45 −28 · 2 files · 1 commits · merged 2026-08-29 11:18 UTC

Summary

  • Support array-slice views of Standard64KB 2D color render targets.
  • Keep the existing single-layer restriction for depth-tiled render targets.
  • Validate the full layered backing size and add an upload/readback regression for a five-layer surface.

Problem

A five-layer Standard64KB color surface selecting array slice 4 was rejected during render-target setup:

unsupported 64KB texture-tiled render-target view: dimension=1 depth=0 layer=4/5

The Standard64KB tiling and transfer paths already address array slices sequentially, but the render-target guard and support predicate only accepted a one-layer backing.

Implementation

  • Allow Standard64KB color targets to use nonzero array layers while leaving depth-tile restrictions unchanged.
  • Require at least one layer and validate the total backing size across every layer.
  • Add a five-layer GPU upload/readback regression that selects layer 4, matching the captured failure.

Testing

  • Standard64RenderTarget passed.
  • RenderExecutorColorStandard64Tile passed.
  • Existing RenderExecutorColorStandard4Tile regression passed.
  • The complete ShaderRecompilerComputeTests suite passed.
  • In GTA V, the previous layer 4/5 failure was cleared and execution advanced to the Ludendorff sequence with dialogue audio before reaching a separate shader-decoder limitation.

AI assistance disclosure

AI assistance was used to inspect the failure path, help implement the change, and draft regression coverage. I reviewed the resulting diff, built it locally, ran the tests above, and validated the change in-game.

**@⁠brandostrong** on GitHub · 2026-08-25 03:49 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/315) `brandostrong:fix/standard64-color-array` → `main` · +45 −28 · 2 files · 1 commits · merged 2026-08-29 11:18 UTC ## Summary - Support array-slice views of Standard64KB 2D color render targets. - Keep the existing single-layer restriction for depth-tiled render targets. - Validate the full layered backing size and add an upload/readback regression for a five-layer surface. ## Problem A five-layer Standard64KB color surface selecting array slice 4 was rejected during render-target setup: ```text unsupported 64KB texture-tiled render-target view: dimension=1 depth=0 layer=4/5 ``` The Standard64KB tiling and transfer paths already address array slices sequentially, but the render-target guard and support predicate only accepted a one-layer backing. ## Implementation - Allow Standard64KB color targets to use nonzero array layers while leaving depth-tile restrictions unchanged. - Require at least one layer and validate the total backing size across every layer. - Add a five-layer GPU upload/readback regression that selects layer 4, matching the captured failure. ## Testing - `Standard64RenderTarget` passed. - `RenderExecutorColorStandard64Tile` passed. - Existing `RenderExecutorColorStandard4Tile` regression passed. - The complete `ShaderRecompilerComputeTests` suite passed. - In GTA V, the previous layer 4/5 failure was cleared and execution advanced to the Ludendorff sequence with dialogue audio before reaching a separate shader-decoder limitation. ## AI assistance disclosure AI assistance was used to inspect the failure path, help implement the change, and draft regression coverage. I reviewed the resulting diff, built it locally, ran the tests above, and validated the change in-game.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:16:29 +00:00
github manually merged commit 2c75e9d71c into gh-pr/315/base 2026-11-26 09:16:30 +00:00
Author
Owner

@⁠Nmzik on GitHub · 2026-08-25 16:56 UTC · original

@⁠brandostrong Are you using GTA V in Fidelity mode? GTA V goes in-game on the latest commit when using Performance mode. Fidelity mode uses ray tracing, which we don’t support.

**@⁠Nmzik** on GitHub · 2026-08-25 16:56 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/315#issuecomment-5413817453) @⁠brandostrong Are you using GTA V in Fidelity mode? GTA V goes in-game on the latest commit when using Performance mode. Fidelity mode uses ray tracing, which we don’t support.
Author
Owner

@⁠brandostrong on GitHub · 2026-08-25 17:30 UTC · original

Ah good catch, I get past the error this PR fixes in Fidelity mode.

**@⁠brandostrong** on GitHub · 2026-08-25 17:30 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/315#issuecomment-5414212867) Ah good catch, I get past the error this PR fixes in Fidelity mode.
Author
Owner

@⁠Nmzik on GitHub · 2026-08-29 11:18 UTC · original

@⁠brandostrong Thanks! I cleaned up your PR quite a bit and merged it.

**@⁠Nmzik** on GitHub · 2026-08-29 11:18 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/315#issuecomment-5462043223) @⁠brandostrong Thanks! I cleaned up your PR quite a bit and merged it.
This discussion has been locked. Commenting is limited to contributors.
No description provided.