drm/radeon: Fix size used for benchmarking BO copies.
authorMichel Dänzer <daenzer@vmware.com>
Sun, 19 Jul 2009 23:44:03 +0000 (01:44 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 29 Jul 2009 06:08:56 +0000 (16:08 +1000)
The incorrect size caused benchmark results to be inflated by a factor of 4.

Signed-off-by: Michel Dänzer <daenzer@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_benchmark.c

index c44403a..2e938f7 100644 (file)
@@ -63,7 +63,7 @@ void radeon_benchmark_move(struct radeon_device *rdev, unsigned bsize,
                if (r) {
                        goto out_cleanup;
                }
                if (r) {
                        goto out_cleanup;
                }
-               r = radeon_copy_dma(rdev, saddr, daddr, size >> 14, fence);
+               r = radeon_copy_dma(rdev, saddr, daddr, size / 4096, fence);
                if (r) {
                        goto out_cleanup;
                }
                if (r) {
                        goto out_cleanup;
                }
@@ -88,7 +88,7 @@ void radeon_benchmark_move(struct radeon_device *rdev, unsigned bsize,
                if (r) {
                        goto out_cleanup;
                }
                if (r) {
                        goto out_cleanup;
                }
-               r = radeon_copy_blit(rdev, saddr, daddr, size >> 14, fence);
+               r = radeon_copy_blit(rdev, saddr, daddr, size / 4096, fence);
                if (r) {
                        goto out_cleanup;
                }
                if (r) {
                        goto out_cleanup;
                }