[Mesa-dev] [PATCH] radeon/uvd: alignment fix for decode message buffer

Leo Liu leo.liu at amd.com
Fri Apr 8 16:23:34 UTC 2016


Cc: <mesa-stable at lists.freedesktop.org>

On 04/08/2016 11:34 AM, Boyuan Zhang wrote:
> Signed-off-by: Boyuan Zhang <boyuan.zhang at amd.com>
> Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
>   src/gallium/drivers/radeon/radeon_uvd.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c
> index 233f460..098baf2 100644
> --- a/src/gallium/drivers/radeon/radeon_uvd.c
> +++ b/src/gallium/drivers/radeon/radeon_uvd.c
> @@ -1003,7 +1003,7 @@ static void ruvd_end_frame(struct pipe_video_codec *decoder,
>   
>   	dec->msg->body.decode.dpb_size = dec->dpb.res->buf->size;
>   	dec->msg->body.decode.bsd_size = bs_size;
> -	dec->msg->body.decode.db_pitch = dec->base.width;
> +	dec->msg->body.decode.db_pitch = align(dec->base.width, 16);
>   
>   	dt = dec->set_dtb(dec->msg, (struct vl_video_buffer *)target);
>   	if (((struct r600_common_screen*)dec->screen)->family >= CHIP_STONEY)



More information about the mesa-dev mailing list