summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/radeon_uvd.c
diff options
context:
space:
mode:
authorsonjiang <[email protected]>2016-06-28 11:23:41 -0400
committerLeo Liu <[email protected]>2016-06-29 15:30:25 -0400
commitb928ff6f62144e20f4260cc1bb897f84b97dc925 (patch)
tree51cd9bcab6ef3192115ed018f7948dce46c7a876 /src/gallium/drivers/radeon/radeon_uvd.c
parent5c80354a23b7d770b2d61b626b9d62fdf764ca9d (diff)
radeon/uvd: fix a h265 context size bug
Signed-off-by: sonjiang <[email protected]> Cc: "12.0" <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_uvd.c')
-rw-r--r--src/gallium/drivers/radeon/radeon_uvd.c3
1 files changed, 3 insertions, 0 deletions
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: