video_out_flip_backtoback fails intermittently with "back-to-back flip status is wrong" #16956

Closed
opened 2026-11-08 01:16:09 +00:00 by NathanFahey23 · 0 comments
NathanFahey23 commented 2026-11-08 01:16:09 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by NathanFahey23 on 2026-11-08T01:16:09Z.


What happens

video_out_flip_backtoback sometimes fails at 'back-to-back flip status is wrong' (core/libs/prx/libSceVideoOut/tests/Flip.cpp:920).

Title, test or build step

ctest video_out_flip_backtoback (core/libs/prx/libSceVideoOut/tests/Flip.cpp)

AnyPS5 commit

main 8bf9729d56, nothing merged on top

System

Windows 11 Home 10.0.26300, i9-13900K, RTX 4080 (driver 32.0.16.2101), WinLibs GCC 15.2.0 UCRT posix-seh r7, Release, BUILD_TESTING=ON

Host report


Steps to reproduce

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build-full --parallel 6 --timeout 300
It failed in 1 of 4 full-suite runs. Run alone 40 times in a row (ctest -R '^video_out_flip_backtoback$'), it never failed.

Log

[src/VulkanDevice.cpp:2680 VulkanDevice] Swapchain created swapchain=0000019a965d3cd0 extent=2226x1252 images=3
[mouse] video driver windows: guest 259x137 presented at 2226x1177, delta scale 0.1164 x 0.1164
back-to-back flip status is wrong

What was checked

The two checks before it passed: all 4 presentations completed, and no pending counts were left. So the wait for flipStatus.count == 4 ended, but flipStatus.flipArg was not the last argument, or currentBuffer was not 1. That would fit count being raised before flipArg/currentBuffer are written for the last flip, or flips retiring out of order when the GPU is busy. I have not confirmed which. It only shows up while other tests load the GPU and CPU.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6266216247 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/16956). Originally posted by [NathanFahey23](https://github.com/NathanFahey23) on 2026-11-08T01:16:09Z. --- ### What happens video_out_flip_backtoback sometimes fails at 'back-to-back flip status is wrong' (core/libs/prx/libSceVideoOut/tests/Flip.cpp:920). ### Title, test or build step ctest video_out_flip_backtoback (core/libs/prx/libSceVideoOut/tests/Flip.cpp) ### AnyPS5 commit main 8bf9729d56, nothing merged on top ### System Windows 11 Home 10.0.26300, i9-13900K, RTX 4080 (driver 32.0.16.2101), WinLibs GCC 15.2.0 UCRT posix-seh r7, Release, BUILD_TESTING=ON ### Host report ```text ``` ### Steps to reproduce `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build-full --parallel 6 --timeout 300` It failed in 1 of 4 full-suite runs. Run alone 40 times in a row (`ctest -R '^video_out_flip_backtoback$'`), it never failed. ### Log ```text [src/VulkanDevice.cpp:2680 VulkanDevice] Swapchain created swapchain=0000019a965d3cd0 extent=2226x1252 images=3 [mouse] video driver windows: guest 259x137 presented at 2226x1177, delta scale 0.1164 x 0.1164 back-to-back flip status is wrong ``` ### What was checked The two checks before it passed: all 4 presentations completed, and no pending counts were left. So the wait for `flipStatus.count == 4` ended, but `flipStatus.flipArg` was not the last argument, or `currentBuffer` was not 1. That would fit `count` being raised before `flipArg`/`currentBuffer` are written for the last flip, or flips retiring out of order when the GPU is busy. I have not confirmed which. It only shows up while other tests load the GPU and CPU. 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#16956
No description provided.