frontends/vdpau: Fix creating surfaces with 422 chroma
Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13103 Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34831>
This commit is contained in:
@@ -172,6 +172,8 @@ ChromaToPipeFormat(VdpChromaType vdpau_type)
|
||||
case VDP_CHROMA_TYPE_420_16:
|
||||
return PIPE_FORMAT_P016;
|
||||
#endif
|
||||
case VDP_CHROMA_TYPE_422:
|
||||
return PIPE_FORMAT_UYVY;
|
||||
default:
|
||||
assert(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user