diff options
author | Boyuan Zhang <[email protected]> | 2016-04-08 11:31:15 -0400 |
---|---|---|
committer | Leo Liu <[email protected]> | 2016-04-11 19:30:47 -0400 |
commit | 1c7ba7f15646367006d615180e89d5ea34a3d5f6 (patch) | |
tree | 9fb124e2a2a3785fb6b8b707f92ab2486b5a6e32 | |
parent | 704d203d5f9bfaee1367678e3c4e11e25e22acc4 (diff) |
radeon/uvd: alignment fix for decode message buffer
Signed-off-by: Boyuan Zhang <[email protected]>
Reviewed-by: Christian König <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeon/radeon_uvd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c index 233f46091a4..098baf20797 100644 --- a/src/gallium/drivers/radeon/radeon_uvd.c +++ b/src/gallium/drivers/radeon/radeon_uvd.c @@ -1003,7 +1003,7 @@ static void ruvd_end_frame(struct pipe_video_codec *decoder, dec->msg->body.decode.dpb_size = dec->dpb.res->buf->size; dec->msg->body.decode.bsd_size = bs_size; - dec->msg->body.decode.db_pitch = dec->base.width; + dec->msg->body.decode.db_pitch = align(dec->base.width, 16); dt = dec->set_dtb(dec->msg, (struct vl_video_buffer *)target); if (((struct r600_common_screen*)dec->screen)->family >= CHIP_STONEY) |