GTA V (PPSA04264): dark square tiles around foreground characters in cutscenes; the depth-of-field blur 0x25b37ca00 writes about 5 % of its input #12247

Open
opened 2026-10-28 04:53:20 +00:00 by Tehshortbus · 0 comments
Tehshortbus commented 2026-10-28 04:53:20 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Tehshortbus on 2026-10-28T04:53:20Z.


What happens

In cutscenes, square dark tiles in a stair pattern cover the background around foreground characters (the near-field depth-of-field region). They come from the title's depth-of-field blur compute shader 0x25b37ca00, whose output is about 0.05× its input in every channel.

Title, test or build step

Grand Theft Auto V, PPSA04264 01.011.001, Story mode cutscenes (from the first one after loading).

AnyPS5 commit

main 86fb985abb with #11580 (fedf3e91a7) merged locally, which the title needs to get past #11425 to gameplay. Some runs also had #12244 (logging only). #11580 does not seem to be involved: none of the shaders below makes a D16 image access.

System

CachyOS Linux (kernel 7.3.0-4-cachyos), GCC 16.2.1, Release, NVIDIA GeForce RTX 4070 SUPER (615.78.08), 3840x2160 output (2560x1440 internal), warm shader cache.

Steps to reproduce

Run the title (seen with no APS5_* variables except APS5_TRACE_SUMMARY_EVERY/APS5_TRACE_DIR), load Story mode and watch the first cutscene: whenever a character is close to the camera, the background around them shows the tiles.

Log

No warning or refusal accompanies the tiles. The evidence:

1. Which pass. APS5_TRACE_DISPATCH_IO=1 lists ten compute shaders that read and write 11_11_10_FLOAT (guest format 36) images at 160x90, 54x30, 1280x720 and 2560x1440 every cutscene frame: 0x25b378a00, 0x25b378e00, 0x25b379200, 0x25b37aa00, 0x25b37ae00, 0x25b37b200, 0x25b37ca00, 0x25b380c00, 0x25b381000, 0x25b381400. With APS5_SKIP_SHADER_FILE, live:

  • skipping all ten removes the tiles (and the depth of field);
  • skipping only the five 1280x720 passes (0x25b37aa00 … 0x25b380c00) makes the final pass paste stale blur into the same tile grid, so the final pass fills whole tiles from the half-resolution blur;
  • skipping the two 160x90 tile passes 0x25b36f800 and 0x25b38de00 (motion blur) does not change them.

2. Where the values go dark. APS5_DUMP_STORAGE=1280x720x1:36 with APS5_DUMP_STORAGE_GATE, opened during a cutscene, read the 1280x720 images straight from their VkImages:

image written by content
0x259340000 0x25b37aa00 / 0x25b37ae00 the sharp near-field color, only in the active tiles
0x259700000 0x25b37ae00 / 0x25b37b200 non-color data in the same tiles (R median 0.42, G 0, B 0.625)
0x258f80000 0x25b37ca00 the blurred near-field color
0x258bc0000 0x25b380c00 the blend of the blur back in; the dark tiles

Over the 63,936 pixels where 0x259340000 and 0x258f80000 both have content, 0x258f80000 ÷ 0x259340000 is 0.049 (p10 0.040, p90 0.050), the same in R, G and B (medians 0.277/0.248/0.207 against 0.013/0.012/0.010). 0x258bc0000 ÷ 0x259340000 is 0.050 inside that region and 1.000 outside it. 52.8 % of the near-field pixels end up at 0.05×.

3. In the shader. APS5_DUMP_IR of 0x25b37ca00 (from an APS5_DUMP_SHADERS request, replayed with agc_shader_replay): the stored color is t × A + B with t = FPSaturate32(0.040816 × x) (2/49). x is built from component 0 of 28 ImageSampleRaw results of the two image resources the shader loads from memory (the dispatch's sampled inputs are 1280x720 guest formats 29 and 36), compared against 0.975; the 14 color taps use the resource in s[0:7]. An output of 0.05× the input means t ≈ 0.05, so x is about 20 times smaller than a full-coverage tile.

What was checked

  • APS5_NO_SAMPLED_FROM_STORAGE=1: the tiles are still there (three screenshots of different shots, and an APS5_DUMP_FRAMES frame), so the sampled view of a storage image written earlier in the frame is not the cause.
  • None of the ten shaders makes a D16 image access (bit 63 of every MIMG instruction; the same check finds all 52 of 0x25b36a200's, the shader of #11425), so #11580's D16 path is not involved. Plain main cannot reach the cutscenes (#11425), so I have no run without #11580.
  • Not checked: the contents of the 1280x720 guest format 29 (16-bit float) input, which a draw writes, so APS5_DUMP_STORAGE cannot read it; and whether the shader's emulated 16-bit arithmetic (about 1,000 bit operations feed x) is involved, since no switch turns that emulation off. Other GPUs or Windows: not tried.

The dumps (raw and PNG) and the IR are available on request.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6072859491 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/12247). Originally posted by [Tehshortbus](https://github.com/Tehshortbus) on 2026-10-28T04:53:20Z. --- ### What happens In cutscenes, square dark tiles in a stair pattern cover the background around foreground characters (the near-field depth-of-field region). They come from the title's depth-of-field blur compute shader `0x25b37ca00`, whose output is about 0.05× its input in every channel. ### Title, test or build step Grand Theft Auto V, PPSA04264 01.011.001, Story mode cutscenes (from the first one after loading). ### AnyPS5 commit `main` `86fb985abb` with #11580 (`fedf3e91a7`) merged locally, which the title needs to get past #11425 to gameplay. Some runs also had #12244 (logging only). #11580 does not seem to be involved: none of the shaders below makes a D16 image access. ### System CachyOS Linux (kernel 7.3.0-4-cachyos), GCC 16.2.1, Release, NVIDIA GeForce RTX 4070 SUPER (615.78.08), 3840x2160 output (2560x1440 internal), warm shader cache. ### Steps to reproduce Run the title (seen with no `APS5_*` variables except `APS5_TRACE_SUMMARY_EVERY`/`APS5_TRACE_DIR`), load Story mode and watch the first cutscene: whenever a character is close to the camera, the background around them shows the tiles. ### Log No warning or refusal accompanies the tiles. The evidence: **1. Which pass.** `APS5_TRACE_DISPATCH_IO=1` lists ten compute shaders that read and write `11_11_10_FLOAT` (guest format 36) images at 160x90, 54x30, 1280x720 and 2560x1440 every cutscene frame: `0x25b378a00`, `0x25b378e00`, `0x25b379200`, `0x25b37aa00`, `0x25b37ae00`, `0x25b37b200`, `0x25b37ca00`, `0x25b380c00`, `0x25b381000`, `0x25b381400`. With `APS5_SKIP_SHADER_FILE`, live: - skipping all ten removes the tiles (and the depth of field); - skipping only the five 1280x720 passes (`0x25b37aa00` … `0x25b380c00`) makes the final pass paste stale blur into the same tile grid, so the final pass fills whole tiles from the half-resolution blur; - skipping the two 160x90 tile passes `0x25b36f800` and `0x25b38de00` (motion blur) does not change them. **2. Where the values go dark.** `APS5_DUMP_STORAGE=1280x720x1:36` with `APS5_DUMP_STORAGE_GATE`, opened during a cutscene, read the 1280x720 images straight from their VkImages: | image | written by | content | |---|---|---| | `0x259340000` | `0x25b37aa00` / `0x25b37ae00` | the sharp near-field color, only in the active tiles | | `0x259700000` | `0x25b37ae00` / `0x25b37b200` | non-color data in the same tiles (R median 0.42, G 0, B 0.625) | | `0x258f80000` | `0x25b37ca00` | the blurred near-field color | | `0x258bc0000` | `0x25b380c00` | the blend of the blur back in; the dark tiles | Over the 63,936 pixels where `0x259340000` and `0x258f80000` both have content, `0x258f80000` ÷ `0x259340000` is 0.049 (p10 0.040, p90 0.050), the same in R, G and B (medians 0.277/0.248/0.207 against 0.013/0.012/0.010). `0x258bc0000` ÷ `0x259340000` is 0.050 inside that region and 1.000 outside it. 52.8 % of the near-field pixels end up at 0.05×. **3. In the shader.** `APS5_DUMP_IR` of `0x25b37ca00` (from an `APS5_DUMP_SHADERS` request, replayed with `agc_shader_replay`): the stored color is `t × A + B` with `t = FPSaturate32(0.040816 × x)` (2/49). `x` is built from component 0 of 28 `ImageSampleRaw` results of the two image resources the shader loads from memory (the dispatch's sampled inputs are 1280x720 guest formats 29 and 36), compared against `0.975`; the 14 color taps use the resource in `s[0:7]`. An output of 0.05× the input means `t` ≈ 0.05, so `x` is about 20 times smaller than a full-coverage tile. ### What was checked - `APS5_NO_SAMPLED_FROM_STORAGE=1`: the tiles are still there (three screenshots of different shots, and an `APS5_DUMP_FRAMES` frame), so the sampled view of a storage image written earlier in the frame is not the cause. - None of the ten shaders makes a D16 image access (bit 63 of every MIMG instruction; the same check finds all 52 of `0x25b36a200`'s, the shader of #11425), so #11580's D16 path is not involved. Plain `main` cannot reach the cutscenes (#11425), so I have no run without #11580. - Not checked: the contents of the 1280x720 guest format 29 (16-bit float) input, which a draw writes, so `APS5_DUMP_STORAGE` cannot read it; and whether the shader's emulated 16-bit arithmetic (about 1,000 bit operations feed `x`) is involved, since no switch turns that emulation off. Other GPUs or Windows: not tried. The dumps (raw and PNG) and the IR are available on request. AI-assisted: yes (Claude Code)
Sign in to join this conversation.
No labels
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.

Reference
boykopovar/AnyPS5#12247
No description provided.