diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-07-20 01:44:03 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-07-29 08:08:56 +0200 |
commit | ea3c13bd8c2ed1d3670bd72e60f562a427355fdf (patch) | |
tree | 0c9cc60b83f394e2cddf89d4ff476dbfcbc5d312 /drivers/gpu/drm/radeon/radeon_benchmark.c | |
parent | drm/radeon: Add radeon.test parameter for running BO GPU copy tests. (diff) | |
download | linux-ea3c13bd8c2ed1d3670bd72e60f562a427355fdf.tar.xz linux-ea3c13bd8c2ed1d3670bd72e60f562a427355fdf.zip |
drm/radeon: Fix size used for benchmarking BO copies.
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_benchmark.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_benchmark.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_benchmark.c b/drivers/gpu/drm/radeon/radeon_benchmark.c index c44403a2ca76..2e938f7496fb 100644 --- a/drivers/gpu/drm/radeon/radeon_benchmark.c +++ b/drivers/gpu/drm/radeon/radeon_benchmark.c @@ -63,7 +63,7 @@ void radeon_benchmark_move(struct radeon_device *rdev, unsigned bsize, 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; } @@ -88,7 +88,7 @@ void radeon_benchmark_move(struct radeon_device *rdev, unsigned bsize, 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; } |