Direct scanout is broken for NV12 and P010 on Intel
https://gitlab.freedesktop.org/mesa/mesa/-/issues/9952
Mesa issue:https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25603
Mesa MR:STR:
- use Mutter with !3286 (merged) (
45.1
?) - download e.g. https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_30MB.mp4 to
~/Videos
- build
mpv
from main (>= the upcoming(?) 0.36.1 release) - set the resolution of the screen to
1920x1080
(or have !3177 (merged) applied to Mutter) - run
mpv --hwdec=vaapi --vo=dmabuf-wayland -fs ~/Videos/Big_Buck_Bunny_1080_10s_30MB.mp4
You should see something like the following:
This has been reproduced on several Intel devices. It doesn't affect e.g. AMD or other formats[1].
My suspicion here is that that it's a kms driver bug only affecting the primary plane. Compositors like Weston, that usually use an overlay plane here, are apparently not affected.
I also double-checked that this is not about wrong passing of drm format modifiers - the same issue is visible when forcing mpv
to use an invalid/implicit modifier instead of the explicit one (which in all tested cases was INTEL_Y_TILED
).
1: You can try YUYV
/yuyv422
with mpv --hwdec=vaapi --vo=dmabuf-wayland --vf=format=yuyv422 --fs ~/Videos/Big_Buck_Bunny_1080_10s_30MB.mp4
Edited by Robert Mader