[Mesa-dev] [PATCH 15/20] radeon/video: mjpeg not support stacked video buffers

Christian König deathsimple at vodafone.de
Wed Aug 16 07:24:38 UTC 2017


Am 15.08.2017 um 22:08 schrieb Leo Liu:
> So we have to detect it for relocation of de-interlaced buffers
>
> Signed-off-by: Leo Liu <leo.liu at amd.com>

Ah, here are the missing patches. This one is Reviewed-by: Christian 
König <christian.koenig at amd.com>.

> ---
>   src/gallium/drivers/radeon/radeon_video.c | 6 +++++-
>   1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c
> index 0cff2a0df9..6196724104 100644
> --- a/src/gallium/drivers/radeon/radeon_video.c
> +++ b/src/gallium/drivers/radeon/radeon_video.c
> @@ -305,8 +305,12 @@ int rvid_get_video_param(struct pipe_screen *screen,
>   			return codec != PIPE_VIDEO_FORMAT_MPEG12 &&
>   			       rscreen->family > CHIP_RV770;
>   		} else {
> -			if (u_reduce_video_profile(profile) == PIPE_VIDEO_FORMAT_HEVC)
> +			enum pipe_video_format format = u_reduce_video_profile(profile);
> +
> +			if (format == PIPE_VIDEO_FORMAT_HEVC)
>   				return false; //The firmware doesn't support interlaced HEVC.
> +			else if (format == PIPE_VIDEO_FORMAT_MJPEG)
> +				return false;
>   			return true;
>   		}
>   	case PIPE_VIDEO_CAP_SUPPORTS_PROGRESSIVE:




More information about the mesa-dev mailing list