Skip to content

Commit

Permalink
drm/radeon/r600: set correct pitch for 4 byte copy
Browse files Browse the repository at this point in the history
[agd5f: also fix the non-kms path]

Signed-off-by: Alex Deucher <[email protected]>
  • Loading branch information
amaasikas authored and airlied committed Sep 23, 2009
1 parent c214271 commit 5b31aee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/r600_blit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/r600_blit_kms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 5b31aee

Please sign in to comment.