summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/r600_blit.c
diff options
context:
space:
mode:
authorAndre Maasikas <amaasikas@gmail.com>2009-09-21 16:59:41 +0400
committerDave Airlie <airlied@redhat.com>2009-09-23 04:21:06 +0400
commit5b31aee9d72f529ee6b60e8d66967f817a0e39fc (patch)
tree33258e229ee03cac9ec53e0c5615aa9e1d5d0985 /drivers/gpu/drm/radeon/r600_blit.c
parentc214271563c00f2721c5111e27b53bf06dabc6e4 (diff)
downloadlinux-5b31aee9d72f529ee6b60e8d66967f817a0e39fc.tar.xz
drm/radeon/r600: set correct pitch for 4 byte copy
[agd5f: also fix the non-kms path] Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600_blit.c')
-rw-r--r--drivers/gpu/drm/radeon/r600_blit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r600_blit.c b/drivers/gpu/drm/radeon/r600_blit.c
index dde2ccbf1d15..d988eece0187 100644
--- a/drivers/gpu/drm/radeon/r600_blit.c
+++ b/drivers/gpu/drm/radeon/r600_blit.c
@@ -737,7 +737,7 @@ r600_blit_copy(struct drm_device *dev,
/* dst */
set_render_target(dev_priv, COLOR_8_8_8_8,
- dst_x + cur_size, h,
+ (dst_x + cur_size) / 4, h,
dst_gpu_addr);
/* scissors */