Skip to content

Commit 5b31aee

Browse files
amaasikasairlied
authored andcommitted
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>
1 parent c214271 commit 5b31aee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/gpu/drm/radeon/r600_blit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ r600_blit_copy(struct drm_device *dev,
737737

738738
/* dst */
739739
set_render_target(dev_priv, COLOR_8_8_8_8,
740-
dst_x + cur_size, h,
740+
(dst_x + cur_size) / 4, h,
741741
dst_gpu_addr);
742742

743743
/* scissors */

drivers/gpu/drm/radeon/r600_blit_kms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ void r600_kms_blit_copy(struct radeon_device *rdev,
774774

775775
/* dst 23 */
776776
set_render_target(rdev, COLOR_8_8_8_8,
777-
dst_x + cur_size, h,
777+
(dst_x + cur_size) / 4, h,
778778
dst_gpu_addr);
779779

780780
/* scissors 12 */

0 commit comments

Comments
 (0)