[Mesa-dev] [PATCH] radeon/video: Return false explicitly for HEVC if not the case

Nicolai Hähnle nhaehnle at gmail.com
Wed Aug 23 14:38:15 UTC 2017


On 23.08.2017 15:55, Leo Liu wrote:
> Signed-off-by: Leo Liu <leo.liu at amd.com>

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>


> ---
>   src/gallium/drivers/radeon/radeon_video.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c
> index 7c2553364e..99b6676fee 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;
> 


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the mesa-dev mailing list