From: Boyuan Zhang Date: Tue, 22 Dec 2015 01:06:26 +0000 (-0500) Subject: radeon/video: enable HEVC main 10 decode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06c862d67d2e8686fa8614019f1170c2f7f71028;p=mesa.git radeon/video: enable HEVC main 10 decode Signed-off-by: Boyuan Zhang Reviewed-by: Christian König Reviewed-by: Alex Deucher --- diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c index 52a1a3dd49a..24b0eed51d2 100644 --- a/src/gallium/drivers/radeon/radeon_video.c +++ b/src/gallium/drivers/radeon/radeon_video.c @@ -248,8 +248,11 @@ int rvid_get_video_param(struct pipe_screen *screen, return true; case PIPE_VIDEO_FORMAT_HEVC: /* Carrizo only supports HEVC Main */ - return rscreen->family >= CHIP_CARRIZO && - profile == PIPE_VIDEO_PROFILE_HEVC_MAIN; + if (rscreen->family >= CHIP_STONEY) + return (profile == PIPE_VIDEO_PROFILE_HEVC_MAIN || + profile == PIPE_VIDEO_PROFILE_HEVC_MAIN_10); + else if (rscreen->family >= CHIP_CARRIZO) + return profile == PIPE_VIDEO_PROFILE_HEVC_MAIN; default: return false; } @@ -297,6 +300,7 @@ int rvid_get_video_param(struct pipe_screen *screen, case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH: return 41; case PIPE_VIDEO_PROFILE_HEVC_MAIN: + case PIPE_VIDEO_PROFILE_HEVC_MAIN_10: return 186; default: return 0;