frontends/va: return matching drm format for yuyv pipe format
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Thu, 13 Apr 2023 06:48:54 +0000 (12:18 +0530)
committerMarge Bot <emma+marge@anholt.net>
Mon, 24 Apr 2023 19:06:30 +0000 (19:06 +0000)
commit5307f6d03ff3d5b0cf96ef838a01d14d39215988
tree853518116510b6ac091bc3eb2c18c9bfbdf4cc64
parentedaf49160e5293d30aab1d3bcf5452b8c3178096
frontends/va: return matching drm format for yuyv pipe format

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>
src/gallium/frontends/va/surface.c