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 dde2ccbf1d152119425ee582666654a0567b8b38..d988eece0187253787397d3265bf07f0a6fe1e89 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 0a6f4681f468025dc0712d66c729cd4c7a40a90c..acae33e2ad51cd26c9bb2152c4b261b279c0aff7 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  */