radeonsi: enable jpeg decode for navi10
authorBoyuan Zhang <boyuan.zhang@amd.com>
Tue, 5 Mar 2019 22:51:23 +0000 (17:51 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 19:51:12 +0000 (15:51 -0400)
Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeonsi/si_get.c

index 6b45e71f67ff650ddf8950010e53aeb76b47ad0a..5d08bdf83e6fcb8439004db4a3d54643359cf2e4 100644 (file)
@@ -629,7 +629,8 @@ static int si_get_video_param(struct pipe_screen *screen,
                        return false;
                case PIPE_VIDEO_FORMAT_JPEG:
                        if (sscreen->info.family == CHIP_RAVEN ||
-                           sscreen->info.family == CHIP_RAVEN2)
+                           sscreen->info.family == CHIP_RAVEN2 ||
+                           sscreen->info.family == CHIP_NAVI10)
                                return true;
                        if (sscreen->info.family < CHIP_CARRIZO || sscreen->info.family >= CHIP_VEGA10)
                                return false;