drm/radeon/r600: set correct pitch for 4 byte copy
authorAndre Maasikas <amaasikas@gmail.com>
Mon, 21 Sep 2009 12:59:41 +0000 (08:59 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Sep 2009 00:21:06 +0000 (10:21 +1000)
[agd5f: also fix the non-kms path]

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
drivers/gpu/drm/radeon/r600_blit.c
drivers/gpu/drm/radeon/r600_blit_kms.c

index dde2ccb..d988eec 100644 (file)
@@ -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 */
index 0a6f468..acae33e 100644 (file)
@@ -774,7 +774,7 @@ void r600_kms_blit_copy(struct radeon_device *rdev,
 
                        /* dst 23 */
                        set_render_target(rdev, COLOR_8_8_8_8,
-                                         dst_x + cur_size, h,
+                                         (dst_x + cur_size) / 4, h,
                                          dst_gpu_addr);
 
                        /* scissors 12  */