return the matching drm format for YUYV pipe format in pipe_format_to_drm_format(), else
vlVaExportSurfaceHandle() fails to export a surface handle for YUYV surface.
Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22497>
return DRM_FORMAT_NV12;
case PIPE_FORMAT_P010:
return DRM_FORMAT_P010;
+ case PIPE_FORMAT_YUYV:
+ case PIPE_FORMAT_R8G8_R8B8_UNORM:
+ return DRM_FORMAT_YUYV;
default:
return DRM_FORMAT_INVALID;
}