From 3d10278ce511f5dabb68ed86ee43eaaf43585983 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Fri, 11 Feb 2011 13:51:11 -0500 Subject: Xv: fix textured video alignment harder Signed-off-by: Alex Deucher --- src/r600_textured_videofuncs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/r600_textured_videofuncs.c') diff --git a/src/r600_textured_videofuncs.c b/src/r600_textured_videofuncs.c index 0fb919b7..fdf76b2a 100644 --- a/src/r600_textured_videofuncs.c +++ b/src/r600_textured_videofuncs.c @@ -303,7 +303,7 @@ R600DisplayTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) tex_res.format = FMT_8; tex_res.w = accel_state->src_obj[0].width >> 1; tex_res.h = accel_state->src_obj[0].height >> 1; - tex_res.pitch = RADEON_ALIGN(accel_state->src_obj[0].pitch >> 1, 256); + tex_res.pitch = RADEON_ALIGN(accel_state->src_obj[0].pitch >> 1, pPriv->hw_align); tex_res.dst_sel_x = SQ_SEL_X; /* V or U */ tex_res.dst_sel_y = SQ_SEL_1; tex_res.dst_sel_z = SQ_SEL_1; @@ -326,7 +326,7 @@ R600DisplayTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) tex_res.format = FMT_8; tex_res.w = accel_state->src_obj[0].width >> 1; tex_res.h = accel_state->src_obj[0].height >> 1; - tex_res.pitch = RADEON_ALIGN(accel_state->src_obj[0].pitch >> 1, 256); + tex_res.pitch = RADEON_ALIGN(accel_state->src_obj[0].pitch >> 1, pPriv->hw_align); tex_res.dst_sel_x = SQ_SEL_X; /* V or U */ tex_res.dst_sel_y = SQ_SEL_1; tex_res.dst_sel_z = SQ_SEL_1; -- cgit v1.2.3