Incorrect rendering with vaapi + uyvy422
The attached sample plays well when using these command lines:
mpv --vo=gpu bbb_i.mp4
mpv --vf=format:nv12:convert=yes --vo=vaapi bbb_i.mp4
But when played like this:
mpv --vo=vaapi bbb_i.mp4
In this case the compute_shader_video_buffer
compute shader program is used by vlVaPutSurface
.
From a quick look I'm not sure it's compatible with the uyvy
layout (eg: I think it assumes 1 y value per pixel, while uyvy has 2) but I'm not familiar with this code.
(tested on radeonsi)