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>
(cherry picked from commit f8042fa926)
This commit is contained in:
David Rosca 2025-05-06 07:26:30 +02:00 committed by Eric Engestrom
parent 25c188a743
commit 11b4ac1920
2 changed files with 3 additions and 1 deletions

View file

@ -4344,7 +4344,7 @@
"description": "frontends/vdpau: Fix creating surfaces with 422 chroma",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -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);
}