diff options
author | Andre Maasikas <amaasikas@gmail.com> | 2009-09-21 08:59:41 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-09-23 10:21:06 +1000 |
commit | 5b31aee9d72f529ee6b60e8d66967f817a0e39fc (patch) | |
tree | 33258e229ee03cac9ec53e0c5615aa9e1d5d0985 | |
parent | c214271563c00f2721c5111e27b53bf06dabc6e4 (diff) | |
download | op-kernel-dev-5b31aee9d72f529ee6b60e8d66967f817a0e39fc.zip op-kernel-dev-5b31aee9d72f529ee6b60e8d66967f817a0e39fc.tar.gz |
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>
-rw-r--r-- | drivers/gpu/drm/radeon/r600_blit.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/r600_blit_kms.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/r600_blit.c b/drivers/gpu/drm/radeon/r600_blit.c index dde2ccb..d988eec 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 */ diff --git a/drivers/gpu/drm/radeon/r600_blit_kms.c b/drivers/gpu/drm/radeon/r600_blit_kms.c index 0a6f468..acae33e 100644 --- a/drivers/gpu/drm/radeon/r600_blit_kms.c +++ b/drivers/gpu/drm/radeon/r600_blit_kms.c @@ -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 */ |