From: Leo Liu Date: Wed, 23 Aug 2017 13:53:10 +0000 (-0400) Subject: radeon/video: Return false explicitly for HEVC if not the case X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89f75c948385f6f2a2def685f638b9e227550e3a;p=mesa.git radeon/video: Return false explicitly for HEVC if not the case Signed-off-by: Leo Liu Reviewed-by: Christian König Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c index 7c2553364ee..99b6676fee1 100644 --- a/src/gallium/drivers/radeon/radeon_video.c +++ b/src/gallium/drivers/radeon/radeon_video.c @@ -280,6 +280,7 @@ int rvid_get_video_param(struct pipe_screen *screen, profile == PIPE_VIDEO_PROFILE_HEVC_MAIN_10); else if (rscreen->family >= CHIP_CARRIZO) return profile == PIPE_VIDEO_PROFILE_HEVC_MAIN; + return false; case PIPE_VIDEO_FORMAT_JPEG: if (rscreen->family < CHIP_CARRIZO || rscreen->family >= CHIP_VEGA10) return false;