diff options
Diffstat (limited to 'tests/gem_userptr_blits.c')
-rw-r--r-- | tests/gem_userptr_blits.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gem_userptr_blits.c b/tests/gem_userptr_blits.c index 6fff3a9e..e6830f6b 100644 --- a/tests/gem_userptr_blits.c +++ b/tests/gem_userptr_blits.c @@ -689,10 +689,12 @@ static void *umap(int fd, uint32_t handle) if (gem_has_llc(fd)) { ptr = gem_mmap__gtt(fd, handle, sizeof(linear), PROT_READ | PROT_WRITE); + igt_assert(ptr); } else { uint32_t tmp = gem_create(fd, sizeof(linear)); copy(fd, tmp, handle, 0); ptr = gem_mmap__cpu(fd, tmp, 0, sizeof(linear), PROT_READ); + igt_assert(ptr); gem_close(fd, tmp); } |