radeonsi/vcn: enable yuv422 jpeg decode

add yuv422 to supported decode format on asics that support it.

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/19445>
(cherry picked from commit 581220aa54)
This commit is contained in:
Sathishkumar S 2022-10-28 20:15:54 +05:30 committed by Eric Engestrom
parent a8911c50c8
commit 0565b834b6
2 changed files with 2 additions and 2 deletions

View file

@ -16456,7 +16456,7 @@
"description": "radeonsi/vcn: enable yuv422 jpeg decode",
"nominated": false,
"nomination_type": null,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -856,7 +856,7 @@ static bool si_vid_is_format_supported(struct pipe_screen *screen, enum pipe_for
if (profile == PIPE_VIDEO_PROFILE_JPEG_BASELINE) {
if (sscreen->info.family >= CHIP_NAVI21)
return (format == PIPE_FORMAT_NV12 || format == PIPE_FORMAT_Y8_400_UNORM ||
format == PIPE_FORMAT_Y8_U8_V8_444_UNORM);
format == PIPE_FORMAT_Y8_U8_V8_444_UNORM || format == PIPE_FORMAT_YUYV);
else
return (format == PIPE_FORMAT_NV12);