VideoOut tests: video_out_flip_eop_aftergpu trips the Windows GPU timeout on an Intel UHD 770 #8349

Closed
opened 2026-10-20 10:49:16 +00:00 by MayankManas · 0 comments
MayankManas commented 2026-10-20 10:49:16 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MayankManas on 2026-10-20T10:49:16Z.


What

video_out_flip_eop_aftergpu fails on every run on an Intel UHD Graphics 770 on Windows with a real display: Windows resets the GPU (TDR) while the test's GPU busy loop runs, and the flip thread then fails with VK_ERROR_DEVICE_LOST:

[gpu] driver failure: vkQueueSubmit clear: Vulkan result -4
[videoout] presentation failed: vkQueueSubmit clear: Vulkan result -4
terminate called after throwing an instance of 'std::runtime_error'
  what():  vkQueueSubmit clear: Vulkan result -4
FATAL: abort() (SIGABRT)

Windows logs a LiveKernelEvent 141 with fault bucket LKD_0x141_Tdr:6_IMAGE_igdkmdn64.sys_GEN12LP_VULKAN_BBHANG at each run.

testFlipAfterGpuWork in core/libs/prx/libSceVideoOut/tests/Flip.cpp submits one DCB with prepareBusyLoop(100000000u). On an RTX 5070 Ti the work lands after 199 ms (GPU work landed at 198.8 ms, flip completed at 199.0 ms). The UHD 770 has a small fraction of that throughput, so the same loop runs past the Windows GPU timeout (TdrDelay, 2 s by default), and the driver kills it.

CI does not see it: Windows CI uses the offscreen driver, where this test skips, and the Linux run in #6932 uses lavapipe, which has no watchdog.

Reproduce

cmake -S . -B build -DANYPS5_VIDEO_OUT_TEST_DRIVER=windows
set ANYPS5_GPU=Intel
ctest --test-dir build -R '^video_out_flip_eop_aftergpu$' -V
GPU (ANYPS5_GPU) eop_aftergpu aftergpu (run by hand) eop (no GPU work)
Intel UHD Graphics 770, driver 32.0.101.7088 4/4 fail (1 timeout at 30 s, 3 aborts with result -4) 4/4 fail, result -4 passes
NVIDIA GeForce RTX 5070 Ti, driver 617.42 4/4 pass — passes

The failure is the same with and without VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, and the validation runs log no VUID-. Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, main e9cc4a8ef. Flip.cpp is unchanged on main 7d876ad3b.

Expected

The test orders the flip after GPU work on a slow device without one submission running past the OS GPU timeout, for example by sizing the loop to the device or splitting it over several dispatches that still keep the work at least 100 ms long.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5940343042 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/8349). Originally posted by [MayankManas](https://github.com/MayankManas) on 2026-10-20T10:49:16Z. --- ### What `video_out_flip_eop_aftergpu` fails on every run on an Intel UHD Graphics 770 on Windows with a real display: Windows resets the GPU (TDR) while the test's GPU busy loop runs, and the flip thread then fails with `VK_ERROR_DEVICE_LOST`: ``` [gpu] driver failure: vkQueueSubmit clear: Vulkan result -4 [videoout] presentation failed: vkQueueSubmit clear: Vulkan result -4 terminate called after throwing an instance of 'std::runtime_error' what(): vkQueueSubmit clear: Vulkan result -4 FATAL: abort() (SIGABRT) ``` Windows logs a `LiveKernelEvent` 141 with fault bucket `LKD_0x141_Tdr:6_IMAGE_igdkmdn64.sys_GEN12LP_VULKAN_BBHANG` at each run. `testFlipAfterGpuWork` in `core/libs/prx/libSceVideoOut/tests/Flip.cpp` submits one DCB with `prepareBusyLoop(100000000u)`. On an RTX 5070 Ti the work lands after 199 ms (`GPU work landed at 198.8 ms, flip completed at 199.0 ms`). The UHD 770 has a small fraction of that throughput, so the same loop runs past the Windows GPU timeout (`TdrDelay`, 2 s by default), and the driver kills it. CI does not see it: Windows CI uses the `offscreen` driver, where this test skips, and the Linux run in #6932 uses lavapipe, which has no watchdog. ### Reproduce ``` cmake -S . -B build -DANYPS5_VIDEO_OUT_TEST_DRIVER=windows set ANYPS5_GPU=Intel ctest --test-dir build -R '^video_out_flip_eop_aftergpu$' -V ``` | GPU (`ANYPS5_GPU`) | `eop_aftergpu` | `aftergpu` (run by hand) | `eop` (no GPU work) | |---|---|---|---| | Intel UHD Graphics 770, driver 32.0.101.7088 | 4/4 fail (1 timeout at 30 s, 3 aborts with result -4) | 4/4 fail, result -4 | passes | | NVIDIA GeForce RTX 5070 Ti, driver 617.42 | 4/4 pass | — | passes | The failure is the same with and without `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, and the validation runs log no `VUID-`. Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, `main` e9cc4a8ef. `Flip.cpp` is unchanged on `main` 7d876ad3b. ### Expected The test orders the flip after GPU work on a slow device without one submission running past the OS GPU timeout, for example by sizing the loop to the device or splitting it over several dispatches that still keep the work at least 100 ms long. AI-assisted: yes
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#8349
No description provided.