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

Christian König deathsimple at vodafone.de
Wed Aug 23 14:22:33 UTC 2017


Am 23.08.2017 um 15:55 schrieb Leo Liu:
> Signed-off-by: Leo Liu <leo.liu at amd.com>

Reviewed-by: Christian König <christian.koenig 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;




More information about the mesa-dev mailing list