radeonsi/vcn: enable yuv422 jpeg decode
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Fri, 28 Oct 2022 14:45:54 +0000 (20:15 +0530)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Nov 2022 18:35:13 +0000 (18:35 +0000)
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>

src/gallium/drivers/radeonsi/si_get.c

index 2a5d4851c911689136dbc264072825081585ee47..a224b112ee3c0dc913687b22512807632c3a55ea 100644 (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);