aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/r600_blit_kms.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-10-06 00:13:04 -0400
committerDave Airlie <airlied@redhat.com>2010-10-06 00:18:48 -0400
commit2126d0a4a205e2d6b763434f892524cd60f74228 (patch)
tree91c50bbd1ae2e32b9303272b07e2f880aa4d48f3 /drivers/gpu/drm/radeon/r600_blit_kms.c
parent26bf62e47261142d528a6109fdd671a2e280b4ea (diff)
drm/radeon/kms: make sure blit addr masks are 64 bit
Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Cc: stable@kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600_blit_kms.c')
-rw-r--r--drivers/gpu/drm/radeon/r600_blit_kms.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/r600_blit_kms.c b/drivers/gpu/drm/radeon/r600_blit_kms.c
index 2a4747d9747c..39d566dbabfa 100644
--- a/drivers/gpu/drm/radeon/r600_blit_kms.c
+++ b/drivers/gpu/drm/radeon/r600_blit_kms.c
@@ -661,8 +661,8 @@ void r600_kms_blit_copy(struct radeon_device *rdev,
661 int src_x = src_gpu_addr & 255; 661 int src_x = src_gpu_addr & 255;
662 int dst_x = dst_gpu_addr & 255; 662 int dst_x = dst_gpu_addr & 255;
663 int h = 1; 663 int h = 1;
664 src_gpu_addr = src_gpu_addr & ~255; 664 src_gpu_addr = src_gpu_addr & ~255ULL;
665 dst_gpu_addr = dst_gpu_addr & ~255; 665 dst_gpu_addr = dst_gpu_addr & ~255ULL;
666 666
667 if (!src_x && !dst_x) { 667 if (!src_x && !dst_x) {
668 h = (cur_size / max_bytes); 668 h = (cur_size / max_bytes);
@@ -744,8 +744,8 @@ void r600_kms_blit_copy(struct radeon_device *rdev,
744 int src_x = (src_gpu_addr & 255); 744 int src_x = (src_gpu_addr & 255);
745 int dst_x = (dst_gpu_addr & 255); 745 int dst_x = (dst_gpu_addr & 255);
746 int h = 1; 746 int h = 1;
747 src_gpu_addr = src_gpu_addr & ~255; 747 src_gpu_addr = src_gpu_addr & ~255ULL;
748 dst_gpu_addr = dst_gpu_addr & ~255; 748 dst_gpu_addr = dst_gpu_addr & ~255ULL;
749 749
750 if (!src_x && !dst_x) { 750 if (!src_x && !dst_x) {
751 h = (cur_size / max_bytes); 751 h = (cur_size / max_bytes);