Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea3c13bd authored by Michel Dänzer's avatar Michel Dänzer Committed by Dave Airlie
Browse files

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: default avatarMichel Dänzer <daenzer@vmware.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent ecc0b326
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
		}