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:
David Rosca
2025-05-06 07:26:30 +02:00
committed by Marge Bot
parent f1c066b353
commit f8042fa926
@@ -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);
}