AGC (AMD Radeon iGPU gfx1036, Windows): agc_driver_gcn_detile intermittently detiles a 2-byte element wrong #26038

Closed
opened 2026-11-23 05:05:34 +00:00 by aKazm1 · 0 comments
aKazm1 commented 2026-11-23 05:05:34 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by aKazm1 on 2026-11-23T05:05:34Z.


What happens

agc_driver_gcn_detile fails intermittently on the Ryzen 7900X's integrated Radeon (gfx1036). The failure is always one byte of a 2-byte element, in a different tile mode and layer each time:

AGC graphics: PS4 tile mode 24 at 2 bytes, array layer 0: element 178,7 byte 0 detiled as 94, expected 90

Title, test or build step

ctest agc_driver_gcn_detile

AnyPS5 commit

main 742022e89d, with no pull requests on top. origin/main b51f99a5aa has no commit touching GcnDetile.cpp since then.

System

  • OS: Windows 11 Pro 10.0.26200
  • CPU: AMD Ryzen 9 7900X
  • GPU under test: AMD Radeon(TM) Graphics iGPU (1002:164e, gfx1036), Adrenalin 26.11.2 (32.0.21045.29003), Vulkan driver 2.0.353, API 1.4.315
  • Also present: NVIDIA GeForce RTX 4080 (621.14), where the test passes
  • Toolchain: WinLibs GCC 15.2.0 UCRT r7, Release

Host report

AnyPS5 host report (format 1)
commit: 742022e89d4c
[system]
os: Windows 10.0.26200
cpu: AMD Ryzen 9 7900X 12-Core Processor
cpu_threads: 24
memory_mib: 31909
cpu_gate: passed
[sdl]
linked: 2.33.0
compiled: 2.33.0
[gpu]
device: AMD Radeon(TM) Graphics
type: integrated
vendor_id: 0x1002
device_id: 0x164e
vulkan_api: 1.4.315
driver: AMD proprietary driver
driver_info: 26.11.2 (AMD proprietary shader compiler)
driver_version: 2.0.353
driver_version_raw: 0x00800161
subgroup_size: 64
device_local_mib: 10807
candidates: NVIDIA GeForce RTX 4080, AMD Radeon(TM) Graphics

(The report was taken from the Raymarch Tech Demo PPSA97001 with ANYPS5_HOST_REPORT=1. Its [vulkan] section lists no required item missing; optional VK_EXT_mesh_shader and VK_*_present_mode_fifo_latest_ready are missing.)

Steps to reproduce

set ANYPS5_GPU=Radeon
set ANYPS5_REQUIRE_VULKAN=1
set ANYPS5_NO_SHADER_CACHE=1
ctest --test-dir build -R "^agc_driver_gcn_detile$" -j1 --output-on-failure

Each run takes about 2 s. Repeat it about 10 times to see a failure.

Log

AGC graphics: PS4 tile mode 21 at 2 bytes, array layer 0: element 242,7 byte 0 detiled as 50, expected 38
AGC graphics: PS4 tile mode 24 at 2 bytes, array layer 5: element 162,167 byte 0 detiled as 111, expected 107
AGC graphics: PS4 tile mode 29 at 2 bytes, array layer 1: element 480,40 byte 1 detiled as 128, expected 0
AGC graphics: PS4 tile mode 26 at 2 bytes, array layer 2: element 114,7 byte 0 detiled as 154, expected 142
AGC graphics: PS4 tile mode 24 at 2 bytes, array layer 0: element 178,7 byte 0 detiled as 94, expected 90
AGC graphics: PS4 tile mode 23 at 2 bytes, array layer 5: element 160,40 byte 0 detiled as 151, expected 159
AGC graphics: PS4 tile mode 26 at 2 bytes, array layer 2: element 186,79 byte 0 detiled as 115, expected 103
AGC graphics: PS4 tile mode 23 at 2 bytes, array layer 5: element 154,119 byte 0 detiled as 166, expected 162
AGC graphics: PS4 tile mode 19 at 2 bytes, array layer 0: element 320,64 byte 0 detiled as 108, expected 100

These are the failing lines from separate runs. Each run stops at its first wrong byte.

What was checked

GPU / setting Failed
Radeon iGPU, 26.11.2, with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation 5/20, then 3/20
Radeon iGPU, 26.11.2, without the layer 2/20
RTX 4080 (621.14), with the layer 0/20
  • The validation layer (1.4.363) reports no VUID- lines. The loader logs Insert instance layer "VK_LAYER_KHRONOS_validation", and the RTSS and OBS implicit layers were disabled with VK_LOADER_LAYERS_DISABLE.
  • Every failure on 26.11.2 is at 2 bytes per element. On the older iGPU driver 32.0.21042.62 (2026-04-17) the test failed 5/5, once at 1 byte (tile mode 19 at 1 bytes ... detiled as 186, expected 154). That driver also failed six other AGC tests that 26.11.2 passes, so I'm only reporting the 26.11.2 results here.
  • In the full suite on 26.11.2 (ctest -j 12), this test passed. It fails in solo runs.
  • I checked that the test's Buffer defaults to HOST_VISIBLE | HOST_COHERENT memory, so a missing Invalidate() before the host read does not explain it.
  • Searched issues and PRs for gcn_detile, detiled as and gfx1036. Related but different: #23629 (same iGPU, agc_driver_recorder).

AI-assisted: yes (Claude Code ran the builds and test loops and drafted this report; I reviewed it and the results are from my machine.)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6552677200 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/26038). Originally posted by [aKazm1](https://github.com/aKazm1) on 2026-11-23T05:05:34Z. --- ### What happens `agc_driver_gcn_detile` fails intermittently on the Ryzen 7900X's integrated Radeon (gfx1036). The failure is always one byte of a **2-byte** element, in a different tile mode and layer each time: `AGC graphics: PS4 tile mode 24 at 2 bytes, array layer 0: element 178,7 byte 0 detiled as 94, expected 90` ### Title, test or build step ctest `agc_driver_gcn_detile` ### AnyPS5 commit `main` 742022e89d, with no pull requests on top. `origin/main` b51f99a5aa has no commit touching `GcnDetile.cpp` since then. ### System - **OS:** Windows 11 Pro 10.0.26200 - **CPU:** AMD Ryzen 9 7900X - **GPU under test:** AMD Radeon(TM) Graphics iGPU (1002:164e, gfx1036), Adrenalin 26.11.2 (32.0.21045.29003), Vulkan driver 2.0.353, API 1.4.315 - **Also present:** NVIDIA GeForce RTX 4080 (621.14), where the test passes - **Toolchain:** WinLibs GCC 15.2.0 UCRT r7, Release ### Host report ```text AnyPS5 host report (format 1) commit: 742022e89d4c [system] os: Windows 10.0.26200 cpu: AMD Ryzen 9 7900X 12-Core Processor cpu_threads: 24 memory_mib: 31909 cpu_gate: passed [sdl] linked: 2.33.0 compiled: 2.33.0 [gpu] device: AMD Radeon(TM) Graphics type: integrated vendor_id: 0x1002 device_id: 0x164e vulkan_api: 1.4.315 driver: AMD proprietary driver driver_info: 26.11.2 (AMD proprietary shader compiler) driver_version: 2.0.353 driver_version_raw: 0x00800161 subgroup_size: 64 device_local_mib: 10807 candidates: NVIDIA GeForce RTX 4080, AMD Radeon(TM) Graphics ``` (The report was taken from the Raymarch Tech Demo PPSA97001 with `ANYPS5_HOST_REPORT=1`. Its `[vulkan]` section lists no required item missing; optional `VK_EXT_mesh_shader` and `VK_*_present_mode_fifo_latest_ready` are missing.) ### Steps to reproduce ``` set ANYPS5_GPU=Radeon set ANYPS5_REQUIRE_VULKAN=1 set ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -R "^agc_driver_gcn_detile$" -j1 --output-on-failure ``` Each run takes about 2 s. Repeat it about 10 times to see a failure. ### Log ```text AGC graphics: PS4 tile mode 21 at 2 bytes, array layer 0: element 242,7 byte 0 detiled as 50, expected 38 AGC graphics: PS4 tile mode 24 at 2 bytes, array layer 5: element 162,167 byte 0 detiled as 111, expected 107 AGC graphics: PS4 tile mode 29 at 2 bytes, array layer 1: element 480,40 byte 1 detiled as 128, expected 0 AGC graphics: PS4 tile mode 26 at 2 bytes, array layer 2: element 114,7 byte 0 detiled as 154, expected 142 AGC graphics: PS4 tile mode 24 at 2 bytes, array layer 0: element 178,7 byte 0 detiled as 94, expected 90 AGC graphics: PS4 tile mode 23 at 2 bytes, array layer 5: element 160,40 byte 0 detiled as 151, expected 159 AGC graphics: PS4 tile mode 26 at 2 bytes, array layer 2: element 186,79 byte 0 detiled as 115, expected 103 AGC graphics: PS4 tile mode 23 at 2 bytes, array layer 5: element 154,119 byte 0 detiled as 166, expected 162 AGC graphics: PS4 tile mode 19 at 2 bytes, array layer 0: element 320,64 byte 0 detiled as 108, expected 100 ``` These are the failing lines from separate runs. Each run stops at its first wrong byte. ### What was checked | GPU / setting | Failed | |---|---| | Radeon iGPU, 26.11.2, with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` | 5/20, then 3/20 | | Radeon iGPU, 26.11.2, without the layer | 2/20 | | RTX 4080 (621.14), with the layer | 0/20 | - The validation layer (1.4.363) reports no `VUID-` lines. The loader logs `Insert instance layer "VK_LAYER_KHRONOS_validation"`, and the RTSS and OBS implicit layers were disabled with `VK_LOADER_LAYERS_DISABLE`. - Every failure on 26.11.2 is at 2 bytes per element. On the older iGPU driver 32.0.21042.62 (2026-04-17) the test failed 5/5, once at 1 byte (`tile mode 19 at 1 bytes ... detiled as 186, expected 154`). That driver also failed six other AGC tests that 26.11.2 passes, so I'm only reporting the 26.11.2 results here. - In the full suite on 26.11.2 (`ctest -j 12`), this test passed. It fails in solo runs. - I checked that the test's `Buffer` defaults to `HOST_VISIBLE | HOST_COHERENT` memory, so a missing `Invalidate()` before the host read does not explain it. - Searched issues and PRs for `gcn_detile`, `detiled as` and `gfx1036`. Related but different: #23629 (same iGPU, `agc_driver_recorder`). AI-assisted: yes (Claude Code ran the builds and test loops and drafted this report; I reviewed it and the results are from my machine.)
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#26038
No description provided.