From b928ff6f62144e20f4260cc1bb897f84b97dc925 Mon Sep 17 00:00:00 2001 From: sonjiang Date: Tue, 28 Jun 2016 11:23:41 -0400 Subject: [PATCH] radeon/uvd: fix a h265 context size bug MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: sonjiang Cc: "12.0" Reviewed-by: Alex Deucher Reviewed-by: Christian König --- src/gallium/drivers/radeon/radeon_uvd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c index d4355fb0492..97765da69e3 100644 --- a/src/gallium/drivers/radeon/radeon_uvd.c +++ b/src/gallium/drivers/radeon/radeon_uvd.c @@ -1096,6 +1096,9 @@ static void ruvd_end_frame(struct pipe_video_codec *decoder, } rvid_clear_buffer(decoder->context, &dec->ctx); } + + if (dec->ctx.res) + dec->msg->body.decode.dpb_reserved = dec->ctx.res->buf->size; break; case PIPE_VIDEO_FORMAT_VC1: -- 2.30.2