mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
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:
parent
25c188a743
commit
11b4ac1920
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue