agc_driver_bda_reads_shadowed_results and agc_unit_shadow_completion_store fail on RADV (Radeon 860M), pass on lavapipe #10122

Closed
opened 2026-10-23 09:58:22 +00:00 by Lander0606 · 0 comments
Lander0606 commented 2026-10-23 09:58:22 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Lander0606 on 2026-10-23T09:58:22Z.


What happens

The three tests from #6682 fail on every run on RADV: agc_driver_bda_reads_shadowed_results and _per_build with "an address-based build over a heap left the unit shadow's stored results unpublished: the import held the earlier bytes at its submission", and agc_unit_shadow_completion_store with "a CPU store inside a completion over a pending image lost 2097148 bytes of the image's results around it".

Title, test or build step

agc_driver_bda_reads_shadowed_results, agc_driver_bda_reads_shadowed_results_per_build, agc_unit_shadow_completion_store

AnyPS5 commit

main a7d342efc9, nothing merged on top.

System

  • Fedora 44, kernel 7.2.11, AMD Ryzen AI 7 350 with Radeon 860M (1002:1114, RDNA 3.5), Mesa 26.2.5 RADV (AMD Radeon 860M Graphics (RADV KRACKAN1)), Vulkan 1.4.354. - Built in an Ubuntu 24.04 container with GCC 13.3, Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON; the tests ran on the Fedora host.

Steps to reproduce

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 \
VK_DRIVER_FILES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json \
ctest --test-dir build -V -R 'bda_reads_shadowed|shadow_completion_store'

Each test fails within 0.05 s.

Log

[write-watch] host imports resolve write protection: yes (4 of 4 scratch pages written after a GPU read, 4 after a GPU write, 4 after the import); imported ranges are compared
[write-watch] dma-buf imports keep write protection: yes (0 of 4 scratch pages written after a GPU read, 0 after a GPU write, 0 after the import, 1 seen after a CPU store); imported ranges stay watched
Vulkan device: AMD Radeon 860M Graphics (RADV KRACKAN1)
host imports are compared
AGC graphics: an address-based build over a heap left the unit shadow's stored results unpublished: the import held the earlier bytes at its submission


AGC graphics: a CPU store inside a completion over a pending image lost 2097148 bytes of the image's results around it

What was checked

  • Every run: 0 of 3 pass with --repeat until-pass:10.
  • Same machine, same Mesa 26.2.5, lavapipe (VK_DRIVER_FILES=.../lvp_icd.x86_64.json): all three pass. Its probe line differs only in the import column: 0 of 4 scratch pages written after a GPU read, 4 after a GPU write, 0 after the import, and imports are compared as on RADV.
  • APS5_WRITE_WATCH_IMPORTS=watch and =unwatch on RADV: the same three failures with the same messages.
  • Validation layer (VK_LAYER_KHRONOS_validation 1.4.341): no VUID- line in any of the three.
  • The rest of the ^agc_ set on this machine: 917 of 922 pass. The other two failures are known and unrelated (agc_driver_tessellation, a Mesa 26.2.5 compiler crash reported upstream, and agc_compute_pipeline_capture_run, fixed by #8968).
  • #6682 lists lavapipe and NVIDIA (Windows and Linux) under GPUs tested, so this may be the first AMD run of these tests.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5995731714 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/10122). Originally posted by [Lander0606](https://github.com/Lander0606) on 2026-10-23T09:58:22Z. --- ### What happens The three tests from #6682 fail on every run on RADV: `agc_driver_bda_reads_shadowed_results` and `_per_build` with "an address-based build over a heap left the unit shadow's stored results unpublished: the import held the earlier bytes at its submission", and `agc_unit_shadow_completion_store` with "a CPU store inside a completion over a pending image lost 2097148 bytes of the image's results around it". ### Title, test or build step `agc_driver_bda_reads_shadowed_results`, `agc_driver_bda_reads_shadowed_results_per_build`, `agc_unit_shadow_completion_store` ### AnyPS5 commit `main` `a7d342efc9`, nothing merged on top. ### System - Fedora 44, kernel 7.2.11, AMD Ryzen AI 7 350 with Radeon 860M (`1002:1114`, RDNA 3.5), Mesa 26.2.5 RADV (`AMD Radeon 860M Graphics (RADV KRACKAN1)`), Vulkan 1.4.354. - Built in an Ubuntu 24.04 container with GCC 13.3, Release, `BUILD_TESTING=ON`, `ANYPS5_ENABLE_SPIRV_TOOLS=ON`; the tests ran on the Fedora host. ### Steps to reproduce ``` ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 \ VK_DRIVER_FILES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json \ ctest --test-dir build -V -R 'bda_reads_shadowed|shadow_completion_store' ``` Each test fails within 0.05 s. ### Log ```text [write-watch] host imports resolve write protection: yes (4 of 4 scratch pages written after a GPU read, 4 after a GPU write, 4 after the import); imported ranges are compared [write-watch] dma-buf imports keep write protection: yes (0 of 4 scratch pages written after a GPU read, 0 after a GPU write, 0 after the import, 1 seen after a CPU store); imported ranges stay watched Vulkan device: AMD Radeon 860M Graphics (RADV KRACKAN1) host imports are compared AGC graphics: an address-based build over a heap left the unit shadow's stored results unpublished: the import held the earlier bytes at its submission AGC graphics: a CPU store inside a completion over a pending image lost 2097148 bytes of the image's results around it ``` ### What was checked - **Every run:** 0 of 3 pass with `--repeat until-pass:10`. - **Same machine, same Mesa 26.2.5, lavapipe** (`VK_DRIVER_FILES=.../lvp_icd.x86_64.json`): all three pass. Its probe line differs only in the import column: `0 of 4 scratch pages written after a GPU read, 4 after a GPU write, 0 after the import`, and imports are compared as on RADV. - **`APS5_WRITE_WATCH_IMPORTS=watch` and `=unwatch`** on RADV: the same three failures with the same messages. - **Validation layer** (`VK_LAYER_KHRONOS_validation` 1.4.341): no `VUID-` line in any of the three. - The rest of the `^agc_` set on this machine: 917 of 922 pass. The other two failures are known and unrelated (`agc_driver_tessellation`, a Mesa 26.2.5 compiler crash reported upstream, and `agc_compute_pipeline_capture_run`, fixed by #8968). - #6682 lists lavapipe and NVIDIA (Windows and Linux) under GPUs tested, so this may be the first AMD run of these tests.
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#10122
No description provided.