[Mesa-dev] [PATCH 3/3] radeon/uvd: fix a h265 context size bug
Leo Liu
leo.liu at amd.com
Wed Jun 29 15:38:46 UTC 2016
From: sonjiang <sonny.jiang at amd.com>
Signed-off-by: sonjiang <sonny.jiang at amd.com>
Cc: "12.0" <mesa-stable at lists.freedesktop.org>
---
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 1f28b01..7d0d2fd 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.7.4
More information about the mesa-dev
mailing list