diff options
author | Leo Liu <[email protected]> | 2018-10-16 14:18:12 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-07-03 15:51:12 -0400 |
commit | 9bbb546c4f3171e917ec384244a8a23ef3aca33f (patch) | |
tree | 56ea0170f1ba27c6ef6702238bfa9756427c8e63 | |
parent | d6acd29c9a7bccd04c252906cecc09b799246c4d (diff) |
radeonsi: enable encode support for newer HW
Previously it was Raven only allowed to do so
Signed-off-by: Leo Liu <[email protected]>
Acked-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_get.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index dae5a55a3da..6b45e71f67f 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -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: |