summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2020-01-29 20:36:41 -0800
committerChris Wilson <chris@chris-wilson.co.uk>2020-01-30 08:35:34 +0000
commitcade6f4ffa3d6086f0edefc557c65bcb3c3ecddf (patch)
treedebfb0b253b298edee704226079a5ed8c97828c7 /benchmarks
parent786c79af483a9f6e4688811f74116030c734ca1f (diff)
benchmarks/gem_latency: change gtt to device coherent mapping
On newer gens with no mappable aperture we have to switch to GEM_MMAP_OFFSET when reasonable. As gem_mmap__device_coherent() wrapper was written to choose best maping method we can change gtt mapping to it. Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/gem_latency.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/gem_latency.c b/benchmarks/gem_latency.c
index 0fc4b05e..7269e22d 100644
--- a/benchmarks/gem_latency.c
+++ b/benchmarks/gem_latency.c
@@ -242,7 +242,7 @@ static void setup_latency(struct producer *p, int gen, unsigned flags)
if (gem_has_llc(fd))
map = gem_mmap__cpu(fd, handle, 0, 4096, PROT_WRITE);
else
- map = gem_mmap__gtt(fd, handle, 4096, PROT_WRITE);
+ map = gem_mmap__device_coherent(fd, handle, 0, 4096, PROT_WRITE);
p->latency_dispatch.exec[0].relocation_count = 1;
p->latency_dispatch.exec[0].relocs_ptr =