[Mesa-dev,3/3] radeon/uvd: fix a h265 context size bug

Submitted by Leo Liu on June 29, 2016, 3:38 p.m.

Details

Message ID 1467214726-2405-3-git-send-email-leo.liu@amd.com
State Accepted
Commit b928ff6f62144e20f4260cc1bb897f84b97dc925
Headers show
Series "radeon uvd add uvd fw version for amdgpu" ( rev: 2 1 ) in Mesa

Commit Message

Leo Liu June 29, 2016, 3:38 p.m.
From: sonjiang <sonny.jiang@amd.com>

Signed-off-by: sonjiang <sonny.jiang@amd.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
---
 src/gallium/drivers/radeon/radeon_uvd.c | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

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: