From: Thong Thai Date: Mon, 19 Aug 2019 18:31:08 +0000 (-0400) Subject: radeonsi: add JPEG decode support for VCN 2.0 devices X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d03a6b70072858a7acb7ce92bcf26f9a69dee2d;p=mesa.git radeonsi: add JPEG decode support for VCN 2.0 devices Signed-off-by: Thong Thai Reviewed-by: Boyuan Zhang --- 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;