mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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>
This commit is contained in:
parent
edaf49160e
commit
5307f6d03f
1 changed files with 3 additions and 0 deletions
|
|
@ -1473,6 +1473,9 @@ static uint32_t pipe_format_to_drm_format(enum pipe_format format)
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue