From f55f134a033a61d67c2a71bbe57f85eb3484eec1 Mon Sep 17 00:00:00 2001 From: Boyuan Zhang Date: Thu, 12 Nov 2015 18:01:16 -0500 Subject: radeon/uvd: uv pitch separation for stoney v2: set the behaviour default for future ASICs. Signed-off-by: Boyuan Zhang Reviewed-by: Leo Liu Cc: mesa-stable@lists.freedesktop.org --- src/gallium/drivers/radeon/radeon_uvd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/radeon/radeon_uvd.c') diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c index 0c643e5..6ea07be 100644 --- a/src/gallium/drivers/radeon/radeon_uvd.c +++ b/src/gallium/drivers/radeon/radeon_uvd.c @@ -958,6 +958,8 @@ static void ruvd_end_frame(struct pipe_video_codec *decoder, dec->msg->body.decode.db_pitch = dec->base.width; dt = dec->set_dtb(dec->msg, (struct vl_video_buffer *)target); + if (((struct r600_common_screen*)dec->screen)->family >= CHIP_STONEY) + dec->msg->body.decode.dt_wa_chroma_top_offset = dec->msg->body.decode.dt_pitch / 2; switch (u_reduce_video_profile(picture->profile)) { case PIPE_VIDEO_FORMAT_MPEG4_AVC: -- cgit v1.1