radeonsi: enable encode support for newer HW
authorLeo Liu <leo.liu@amd.com>
Tue, 16 Oct 2018 18:18:12 +0000 (14:18 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 19:51:12 +0000 (15:51 -0400)
Previously it was Raven only allowed to do so

Signed-off-by: Leo Liu <leo.liu@amd.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeonsi/si_get.c

index dae5a55a3daa04577f26f414d9a18b96d022d8fe..6b45e71f67ff650ddf8950010e53aeb76b47ad0a 100644 (file)
@@ -577,12 +577,10 @@ static int si_get_video_param(struct pipe_screen *screen,
                case PIPE_VIDEO_CAP_SUPPORTED:
                        return (codec == PIPE_VIDEO_FORMAT_MPEG4_AVC &&
                                (si_vce_is_fw_version_supported(sscreen) ||
-                                sscreen->info.family == CHIP_RAVEN ||
-                                sscreen->info.family == CHIP_RAVEN2)) ||
+                               sscreen->info.family >= CHIP_RAVEN)) ||
                                (profile == PIPE_VIDEO_PROFILE_HEVC_MAIN &&
-                               (sscreen->info.family == CHIP_RAVEN ||
-                                sscreen->info.family == CHIP_RAVEN2 ||
-                                si_radeon_uvd_enc_supported(sscreen)));
+                               (sscreen->info.family >= CHIP_RAVEN ||
+                               si_radeon_uvd_enc_supported(sscreen)));
                case PIPE_VIDEO_CAP_NPOT_TEXTURES:
                        return 1;
                case PIPE_VIDEO_CAP_MAX_WIDTH: