From 8d03a6b70072858a7acb7ce92bcf26f9a69dee2d Mon Sep 17 00:00:00 2001 From: Thong Thai Date: Mon, 19 Aug 2019 14:31:08 -0400 Subject: [PATCH] radeonsi: add JPEG decode support for VCN 2.0 devices Signed-off-by: Thong Thai Reviewed-by: Boyuan Zhang --- src/gallium/drivers/radeonsi/si_get.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index f85a53393aa..912013d6bb3 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -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; -- 2.30.2