radeonsi/vcn: enable yuv formats supported on jpeg 2.5.0 and 2.6.0
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Mon, 31 Oct 2022 10:43:04 +0000 (16:13 +0530)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Nov 2022 18:35:13 +0000 (18:35 +0000)
decode of yuv444 yuv400 and yuv422 is supported on JPEG ip version 2.5.0 and 2.6.0.

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 a224b112ee3c0dc913687b22512807632c3a55ea..1ed1e899069e699433ccc4fbdbf199c91f794544 100644 (file)
@@ -854,7 +854,8 @@ static bool si_vid_is_format_supported(struct pipe_screen *screen, enum pipe_for
 
    /* JPEG supports YUV400 and YUV444 */
    if (profile == PIPE_VIDEO_PROFILE_JPEG_BASELINE) {
-      if (sscreen->info.family >= CHIP_NAVI21)
+      if (sscreen->info.family >= CHIP_NAVI21 || sscreen->info.family == CHIP_ARCTURUS ||
+          sscreen->info.family == CHIP_ALDEBARAN)
          return (format == PIPE_FORMAT_NV12 || format == PIPE_FORMAT_Y8_400_UNORM ||
                  format == PIPE_FORMAT_Y8_U8_V8_444_UNORM || format == PIPE_FORMAT_YUYV);
       else