From: Boyuan Zhang Date: Thu, 25 Jan 2018 20:06:35 +0000 (-0500) Subject: radeonsi: enable vcn encode for HEVC main X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d645b0850a4a34b1e6ba169d0715117160d9d972;p=mesa.git radeonsi: enable vcn encode for HEVC main Enable vcn encode for HEVC main profile on Raven. Signed-off-by: Boyuan Zhang Acked-by: Christian König --- diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 1346534bed7..80023625b72 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -583,8 +583,10 @@ static int si_get_video_param(struct pipe_screen *screen, if (entrypoint == PIPE_VIDEO_ENTRYPOINT_ENCODE) { switch (param) { case PIPE_VIDEO_CAP_SUPPORTED: - return codec == PIPE_VIDEO_FORMAT_MPEG4_AVC && + return (codec == PIPE_VIDEO_FORMAT_MPEG4_AVC && (si_vce_is_fw_version_supported(sscreen) || + sscreen->info.family == CHIP_RAVEN)) || + (profile == PIPE_VIDEO_PROFILE_HEVC_MAIN && sscreen->info.family == CHIP_RAVEN); case PIPE_VIDEO_CAP_NPOT_TEXTURES: return 1;