agc_driver_stencil_plane_memory fails on Windows hardware GPUs: "a consumed stencil clear was lost on a read-only rebind" #22427

Closed
opened 2026-11-17 15:14:05 +00:00 by vilkyway · 0 comments
vilkyway commented 2026-11-17 15:14:05 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by vilkyway on 2026-11-17T15:14:05Z.


What happens

agc_driver_stencil_plane_memory fails on every run on Windows with a hardware GPU: AGC graphics: a consumed stencil clear was lost on a read-only rebind.

Title, test or build step

ctest agc_driver_stencil_plane_memory

AnyPS5 commit

main 01c550960a, no pull requests merged on top.

System

Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 UCRT r7 (15.2.0posix-14.0.0-ucrt-r7), Release. NVIDIA GeForce RTX 4070 Ti SUPER, driver 610.88 AMD Radeon(TM) Graphics (Ryzen 7 9800X3D iGPU), AMD proprietary driver 2026.04.17

Host report

AnyPS5 host report (format 1)
commit: 01c550960a9a
[system]
os: Windows 10.0.26200
cpu: AMD Ryzen 7 9800X3D 8-Core Processor
cpu_threads: 16
memory_mib: 31912
cpu_gate: passed
[sdl]
linked: 2.33.0
compiled: 2.33.0
[gpu]
device: NVIDIA GeForce RTX 4070 Ti SUPER
type: discrete
vendor_id: 0x10de
device_id: 0x2705
vulkan_api: 1.4.341
driver: NVIDIA
driver_info: 610.88
driver_version: 610.88.0.0
subgroup_size: 32
device_local_mib: 16061
candidates: NVIDIA GeForce RTX 4070 Ti SUPER, AMD Radeon(TM) Graphics

Steps to reproduce

cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
cmake --build build --parallel
set ANYPS5_REQUIRE_VULKAN=1
set ANYPS5_NO_SHADER_CACHE=1
ctest --test-dir build -R "^agc_driver_stencil_plane_memory$" --output-on-failure

Log

[write-watch] host imports of write-watched memory keep the write watch: yes (4096 of 4096 scratch pages reported written at the import, 0 by its 4-byte settle read, 0 after it, 0 after a full GPU read, 0 after a second, 0 after a GPU write, 1 after a CPU store); direct host imports of private memory are settled and stay watched, separate shared aliases retain guest write tracking
[float-controls] f32 denormal flush: hardware (0 of 5472 probe results differ from the emulated flush, 246 ms)
[float-controls] f16 NaN results with IEEE_MODE clear: selected (1504 of 2048 probe results differ from the selected NaN, 28 ms)
AGC graphics: a consumed stencil clear was lost on a read-only rebind

What was checked

NVIDIA RTX 4070 Ti SUPER: fails 5 of 5 runs, with and without VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (layer 1.4.363; the loader logs Insert instance layer "VK_LAYER_KHRONOS_validation"). The validation layer reports no VUID- errors for this test.
AMD Radeon iGPU, selected with ANYPS5_GPU (the loader logs Using "AMD Radeon(TM) Graphics"): fails 3 of 3 runs with the same message.
With APS5_NO_DEFERRED_SETTLES=1 the test passes: 3 of 3 runs on the NVIDIA GPU, 1 of 1 on the AMD iGPU. With APS5_NO_WRITE_WATCH=1 it also passes, 3 of 3 on the NVIDIA GPU. So the failure follows the Windows-only deferred settle of host imports (rewatchSettledImports in GuestBufferMemory.cpp), which returns a settled import to the write watch. #22166 describes the same interaction for the saved-baseline fixtures and turns deferred settles off there with SetHostImportDeferredSettles(false). Whether this fixture needs the same or the driver loses the pending clear when the plane is watched again was not determined.
The message is the Require at StencilPlaneMemory.cpp:117 in CheckConsumedStencilClear, the first check after the opening stencil 0x18 store; the write-watch section and the later checks are not reached.
The Windows CI job reports this test as skipped (no Vulkan device), e.g. run 44084301282, so a Windows hardware failure is not visible there.
#14969 reports this test passing on Windows with an AMD RX 6700 XT at its own head, where the plane was not write-watched on Windows. #19071 (db6f26e45a, merged after it) returns settled imports to the write watch; the change that made this test fail was not bisected.
The rest of the AGC set on the same build and NVIDIA GPU: 1980 of 1982 pass; the other failure is agc_driver_upload_cache_read_only_flush, which does not compile with this toolchain (setenv, #19899, #22373).
Related area: #14842 (closed).
AI-assisted: yes (the run and this report were prepared with Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6447710475 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/22427). Originally posted by [vilkyway](https://github.com/vilkyway) on 2026-11-17T15:14:05Z. --- ### What happens agc_driver_stencil_plane_memory fails on every run on Windows with a hardware GPU: AGC graphics: a consumed stencil clear was lost on a read-only rebind. ### Title, test or build step ctest agc_driver_stencil_plane_memory ### AnyPS5 commit main 01c550960a9a075cb07be2da0bad66fd18ef8c8a, no pull requests merged on top. ### System Windows 11 Pro 10.0.26200, WinLibs GCC 15.2.0 UCRT r7 (15.2.0posix-14.0.0-ucrt-r7), Release. NVIDIA GeForce RTX 4070 Ti SUPER, driver 610.88 AMD Radeon(TM) Graphics (Ryzen 7 9800X3D iGPU), AMD proprietary driver 2026.04.17 ### Host report ```text AnyPS5 host report (format 1) commit: 01c550960a9a [system] os: Windows 10.0.26200 cpu: AMD Ryzen 7 9800X3D 8-Core Processor cpu_threads: 16 memory_mib: 31912 cpu_gate: passed [sdl] linked: 2.33.0 compiled: 2.33.0 [gpu] device: NVIDIA GeForce RTX 4070 Ti SUPER type: discrete vendor_id: 0x10de device_id: 0x2705 vulkan_api: 1.4.341 driver: NVIDIA driver_info: 610.88 driver_version: 610.88.0.0 subgroup_size: 32 device_local_mib: 16061 candidates: NVIDIA GeForce RTX 4070 Ti SUPER, AMD Radeon(TM) Graphics ``` ### Steps to reproduce cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ cmake --build build --parallel set ANYPS5_REQUIRE_VULKAN=1 set ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -R "^agc_driver_stencil_plane_memory$" --output-on-failure ### Log ```text [write-watch] host imports of write-watched memory keep the write watch: yes (4096 of 4096 scratch pages reported written at the import, 0 by its 4-byte settle read, 0 after it, 0 after a full GPU read, 0 after a second, 0 after a GPU write, 1 after a CPU store); direct host imports of private memory are settled and stay watched, separate shared aliases retain guest write tracking [float-controls] f32 denormal flush: hardware (0 of 5472 probe results differ from the emulated flush, 246 ms) [float-controls] f16 NaN results with IEEE_MODE clear: selected (1504 of 2048 probe results differ from the selected NaN, 28 ms) AGC graphics: a consumed stencil clear was lost on a read-only rebind ``` ### What was checked NVIDIA RTX 4070 Ti SUPER: fails 5 of 5 runs, with and without VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation (layer 1.4.363; the loader logs Insert instance layer "VK_LAYER_KHRONOS_validation"). The validation layer reports no VUID- errors for this test. AMD Radeon iGPU, selected with ANYPS5_GPU (the loader logs Using "AMD Radeon(TM) Graphics"): fails 3 of 3 runs with the same message. With APS5_NO_DEFERRED_SETTLES=1 the test passes: 3 of 3 runs on the NVIDIA GPU, 1 of 1 on the AMD iGPU. With APS5_NO_WRITE_WATCH=1 it also passes, 3 of 3 on the NVIDIA GPU. So the failure follows the Windows-only deferred settle of host imports (rewatchSettledImports in GuestBufferMemory.cpp), which returns a settled import to the write watch. #22166 describes the same interaction for the saved-baseline fixtures and turns deferred settles off there with SetHostImportDeferredSettles(false). Whether this fixture needs the same or the driver loses the pending clear when the plane is watched again was not determined. The message is the Require at StencilPlaneMemory.cpp:117 in CheckConsumedStencilClear, the first check after the opening stencil 0x18 store; the write-watch section and the later checks are not reached. The Windows CI job reports this test as skipped (no Vulkan device), e.g. run 44084301282, so a Windows hardware failure is not visible there. #14969 reports this test passing on Windows with an AMD RX 6700 XT at its own head, where the plane was not write-watched on Windows. #19071 (db6f26e45a, merged after it) returns settled imports to the write watch; the change that made this test fail was not bisected. The rest of the AGC set on the same build and NVIDIA GPU: 1980 of 1982 pass; the other failure is agc_driver_upload_cache_read_only_flush, which does not compile with this toolchain (setenv, #19899, #22373). Related area: #14842 (closed). AI-assisted: yes (the run and this report were prepared with 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#22427
No description provided.