AGC: agc_driver_direct_write_completion fails on Windows since #13159 #15564

Closed
opened 2026-11-03 19:04:03 +00:00 by Superseabas · 0 comments
Superseabas commented 2026-11-03 19:04:03 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Superseabas on 2026-11-03T19:04:03Z.


What happens

Since #13159, agc_driver_direct_write_completion fails on Windows, on a discrete and on an integrated GPU: AGC graphics: direct write completion: the completion of a buffer write dropped image results recorded after it.

Title, test or build step

agc_driver_direct_write_completion

AnyPS5 commit

main 1e658521a0, nothing merged on top. Bisected over first-parent merges from b28bb77217 (passes):

Commit RTX 5070 Ti Radeon iGPU
a32a527f2c (first parent of the #13159 merge) 2 of 2 pass 2 of 2 pass
8009be68d7 (#13159 merge) 0 of 2 0 of 2
1e658521a0 0 of 3 0 of 3

System

Windows 11 Home 10.0.26200, WinLibs GCC 16.2.0 (x86_64-ucrt-posix-seh, r3), Ninja, Release, BUILD_TESTING=ON. NVIDIA GeForce RTX 5070 Ti (10de:2c05, discrete), driver 621.01. AMD Radeon Graphics of a Ryzen 7 7700X (1002:164e, integrated), AMD 26.10.1. Both are in the same machine, and ANYPS5_GPU picks one (confirmed by Selected GPU).

Steps to reproduce

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ANYPS5_GPU="RTX 5070" ctest --test-dir build -R '^agc_driver_direct_write_completion$' -V

The same with ANYPS5_GPU=Radeon. It fails on every run, in under 2 s.

Log

[direct write completion] 15 of 15 runs held the image results pending, 14 dropped them
AGC graphics: direct write completion: the completion of a buffer write dropped image results recorded after it

The Radeon prints 15 dropped them. In one parallel full-suite run, the Radeon stopped instead with replace guest placeholder with private memory: Attempt to access invalid address.

What was checked

  • The RTX 5070 Ti is a discrete GPU, so RequestImportableGds(false). Even so, the VulkanDevice constructor now calls Pm4::GdsImportable() in the line that probes the GDS host import, and that call maps the GDS (GdsAddress()) while the device is being created, not on first use as before. Locally guarding that line with Pm4::ImportableGdsRequested() && before Pm4::GdsImportable() makes the test pass on the RTX, 3 of 3. So on a discrete GPU, the failure follows the earlier GDS mapping, not the GPU DMA_DATA path.
  • On the Radeon (integrated, so the import is requested), the test still fails with that guard, and also with APS5_NO_SHARED_GDS=1.
  • git revert -m 1 8009be68d7 does not apply cleanly on 1e658521a0, so there is no red check against today's main.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6189293541 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/15564). Originally posted by [Superseabas](https://github.com/Superseabas) on 2026-11-03T19:04:03Z. --- ### What happens Since #13159, `agc_driver_direct_write_completion` fails on Windows, on a discrete and on an integrated GPU: `AGC graphics: direct write completion: the completion of a buffer write dropped image results recorded after it`. ### Title, test or build step `agc_driver_direct_write_completion` ### AnyPS5 commit `main` `1e658521a0`, nothing merged on top. Bisected over first-parent merges from `b28bb77217` (passes): | Commit | RTX 5070 Ti | Radeon iGPU | |---|---|---| | `a32a527f2c` (first parent of the #13159 merge) | 2 of 2 pass | 2 of 2 pass | | `8009be68d7` (#13159 merge) | 0 of 2 | 0 of 2 | | `1e658521a0` | 0 of 3 | 0 of 3 | ### System Windows 11 Home 10.0.26200, WinLibs GCC 16.2.0 (`x86_64-ucrt-posix-seh`, r3), Ninja, Release, `BUILD_TESTING=ON`. NVIDIA GeForce RTX 5070 Ti (`10de:2c05`, discrete), driver 621.01. AMD Radeon Graphics of a Ryzen 7 7700X (`1002:164e`, integrated), AMD 26.10.1. Both are in the same machine, and `ANYPS5_GPU` picks one (confirmed by `Selected GPU`). ### Steps to reproduce ``` ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ANYPS5_GPU="RTX 5070" ctest --test-dir build -R '^agc_driver_direct_write_completion$' -V ``` The same with `ANYPS5_GPU=Radeon`. It fails on every run, in under 2 s. ### Log ``` [direct write completion] 15 of 15 runs held the image results pending, 14 dropped them AGC graphics: direct write completion: the completion of a buffer write dropped image results recorded after it ``` The Radeon prints `15 dropped them`. In one parallel full-suite run, the Radeon stopped instead with `replace guest placeholder with private memory: Attempt to access invalid address`. ### What was checked - The RTX 5070 Ti is a discrete GPU, so `RequestImportableGds(false)`. Even so, the `VulkanDevice` constructor now calls `Pm4::GdsImportable()` in the line that probes the GDS host import, and that call maps the GDS (`GdsAddress()`) while the device is being created, not on first use as before. Locally guarding that line with `Pm4::ImportableGdsRequested() &&` before `Pm4::GdsImportable()` makes the test pass on the RTX, 3 of 3. So on a discrete GPU, the failure follows the earlier GDS mapping, not the GPU DMA_DATA path. - On the Radeon (integrated, so the import is requested), the test still fails with that guard, and also with `APS5_NO_SHARED_GDS=1`. - `git revert -m 1 8009be68d7` does not apply cleanly on `1e658521a0`, so there is no red check against today's `main`. 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#15564
No description provided.