summaryrefslogtreecommitdiff
path: root/benchmarks/gem_blt.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/gem_blt.c')
-rw-r--r--benchmarks/gem_blt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/benchmarks/gem_blt.c b/benchmarks/gem_blt.c
index 181a5f12..3ed23003 100644
--- a/benchmarks/gem_blt.c
+++ b/benchmarks/gem_blt.c
@@ -178,6 +178,7 @@ static int run(int object, int batch, int count, int reps)
fd = drm_open_driver(DRIVER_INTEL);
handle = gem_create(fd, size);
buf = gem_mmap__cpu(fd, handle, 0, size, PROT_WRITE);
+ igt_assert(buf);
gen = intel_gen(intel_get_drm_devid(fd));
has_64bit_reloc = gen >= 8;