summaryrefslogtreecommitdiff
path: root/src/r600_exa.c
diff options
context:
space:
mode:
authormatthew green <mrg@eterna.com.au>2011-03-21 12:17:58 -0400
committerAlex Deucher <alexdeucher@gmail.com>2011-03-21 12:17:58 -0400
commitfe2e0ad3ffa58f40311319c950b842e2928a5740 (patch)
tree156d3354e0b156864a4a8431182992245a9f8b98 /src/r600_exa.c
parent83978ad5fe37581e2b2f3fbd9c073d91b2ae1d50 (diff)
bug fix for r6xx/r7xx UMS
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'src/r600_exa.c')
-rw-r--r--src/r600_exa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/r600_exa.c b/src/r600_exa.c
index 0ed0cedb..7736d243 100644
--- a/src/r600_exa.c
+++ b/src/r600_exa.c
@@ -621,8 +621,12 @@ R600PrepareCopy(PixmapPtr pSrc, PixmapPtr pDst,
return FALSE;
if (accel_state->same_surface == TRUE) {
+#if defined(XF86DRM_MODE)
unsigned height = RADEON_ALIGN(pDst->drawable.height,
drmmode_get_height_align(pScrn, accel_state->dst_obj.tiling_flags));
+#else
+ unsigned height = pDst->drawable.height;
+#endif
unsigned long size = height * accel_state->dst_obj.pitch * pDst->drawable.bitsPerPixel/8;
#if defined(XF86DRM_MODE)