-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drm: use VOCTRL_REDRAW when flipping buffers #15949
drm: use VOCTRL_REDRAW when flipping buffers #15949
Conversation
Realistically this is for drm_egl, but instead of overriding submit_frame, it can use this event instead to know that it should advance its buffers.
4a8e262
to
1efe183
Compare
Basically whenever the VO does a redraw, we always have to flip buffers for vo_drm and drm_egl. The old way of doing this was checking if the video was paused and if the frame was still. This does work, but what really needs to be known is simply if the VO is redrawing. Since the added VOCTRL_REDRAW tells us this, we can shuffle around some logic and simplify greatly. drm_egl no longer needs its custom override for the submit_frame step so that can be eliminated along with the vo_gpu_next hack. Fixes 0959cde.
1efe183
to
81e744e
Compare
Download the artifacts for this pull request: |
After merge of this PR still images are breaking in mpv when resizing the window for example:
|
Are you sure? I can understand that happening with 0959cde but this PR removed all of that code. |
fc9d1ca is the first bad commit for d3d11. (as described in #15949 (comment)) 0959cde is the first bad commit for Vulkan. (Assertion Both are broken in current version, as described in #15949 (comment). |
I don't get that behavior on vulkan on my end on wayland or x11 though. Hence my confusion. I know what caused the assertion error which is why I removed the offending line in
If so, then that means that VOCTRL is somehow not a no-op on Windows? That seems weird though. |
I guess it's this? Lines 2412 to 2416 in 5459b0f
Isn't that redundant with |
I changed my mind. These are the first two commits from #15948 extracted to here since it's just a plain better solution and fixes 0959cde