radeonsi: add JPEG decode support for VCN 2.0 devices
authorThong Thai <thong.thai@amd.com>
Mon, 19 Aug 2019 18:31:08 +0000 (14:31 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 29 Aug 2019 21:27:35 +0000 (17:27 -0400)
Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com>
src/gallium/drivers/radeonsi/si_get.c

index f85a53393aab9e7db714e92551236298bd312cd0..912013d6bb34c34434802d7e414d3cb2f8e1828c 100644 (file)
@@ -643,9 +643,7 @@ static int si_get_video_param(struct pipe_screen *screen,
                                return profile == PIPE_VIDEO_PROFILE_HEVC_MAIN;
                        return false;
                case PIPE_VIDEO_FORMAT_JPEG:
-                       if (sscreen->info.family == CHIP_RAVEN ||
-                           sscreen->info.family == CHIP_RAVEN2 ||
-                           sscreen->info.family == CHIP_NAVI10)
+                       if (sscreen->info.family >= CHIP_RAVEN)
                                return true;
                        if (sscreen->info.family < CHIP_CARRIZO || sscreen->info.family >= CHIP_VEGA10)
                                return false;