radeon/uvd: fix a h265 context size bug
authorsonjiang <sonny.jiang@amd.com>
Tue, 28 Jun 2016 15:23:41 +0000 (11:23 -0400)
committerLeo Liu <leo.liu@amd.com>
Wed, 29 Jun 2016 19:30:25 +0000 (15:30 -0400)
Signed-off-by: sonjiang <sonny.jiang@amd.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeon/radeon_uvd.c

index d4355fb049297db7638cde029fd77dc0d70cbf13..97765da69e3dc6a819164aea81d97530d4efa6e0 100644 (file)
@@ -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: