radeon/uvd: fix a h265 context size bug

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>
This commit is contained in:
sonjiang 2016-06-28 11:23:41 -04:00 committed by Leo Liu
parent 5c80354a23
commit b928ff6f62
1 changed files with 3 additions and 0 deletions

View 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: