agc_driver_stencil_plane_memory fails on Windows hardware GPUs: "a consumed stencil clear was lost on a read-only rebind" #22427
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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
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).