video_out_flip_tests pacing fails on an RTX 5070 Ti: the first flip is released and completes in the same vblank #7581
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 cadenasynyster on 2026-10-18T15:37:28Z.
video_out_flip_tests pacingfails 3 of 3 runs on this machine, on main9f25d0band onf3263df:The check in
testReleaseVblank(Flip.cpp) needslastFlipVblank >= 3 && vblankStatus.count >= lastFlipVblank + 3when the first flip completes: the flip is released early, and its completion then waits at least 3 vblanks for the 100M-iteration busy loop queued ahead of it. With a localprintfof both values just before the check (not committed), all three runs print:So the flip is released at vblank 11 and completes in that same vblank. No vblank passes between release and completion, so the GPU work queued ahead of the flip no longer separates them.
aftergpu, which uses the same busy loop, passes on the same build:GPU work landed at 176.6 ms, flip completed at 177.0 ms.Setup: Windows 11 26200, RTX 5070 Ti (NVIDIA 617.42), Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release. Run directly as
build\tests\video_out_flip_tests.exe pacingwith a real window (CI doesn't run it, see #6899). Same result with the desktop at 60 Hz and at 165 Hz, and with Windows HDR on and off.Correction to my comment on #7246: there I reported
pacingpassing on mainf3263df. Rebuilt fromf3263dftoday, it fails as above. That earlier run used a test binary from the older output folder (build\core\libs\prx\libSceVideoOut), whichf3263dfno longer builds into, so it was probably an older build of the test.#6507 reports
pacingpassing on an RTX 4060 Laptop, Intel UHD and lavapipe, so it may depend on how the timings fall on a given machine. I haven't found where the flip is held.Not run: Linux, other GPUs, a bisect (both commits I built fail the same way).
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T15:41:09Z.
I think the pacing assertion may be checking the wrong interval. In current
Flip.cpp,testReleaseVblanksubmits one CPU flip, waits for that flip to complete, then asserts that three more vblanks have passed sincelastFlipVblank. InVideoOutDriver::processFlip, the flip first waits forlastFlipVblank + (flipRate + 1), then records the currentvblankStatus.countas the newlastFlipVblankimmediately before presentation. That interval paces a subsequent flip; the source does not require the same flip to wait another interval after its release before completing. So release and completion in one vblank appears consistent with this path. To test the release anchor directly, the fixture could submit a second flip after the first completes and assert that its release vblank is at leastflipRate + 1after the first flip's recorded release. This is a source-based hypothesis; I have not run the RTX 5070 Ti setup.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T15:46:51Z.
Opened #7583 with a test-only correction. It keeps the initial release-vblank sanity check and removes the requirement for three additional vblanks after completion;
testPresentation()already checks the interval between consecutive flips. The changed test translation unit passes Linux syntax compilation here, but I could not build/run the VideoOut executable in this container.