diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-27 11:19:26 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-27 11:44:39 +0000 |
commit | a64f31b31e7dcaa5c75792ecb0956c7abcaef3dd (patch) | |
tree | 45f8bb9cd284909b109729c1a1972ad026f81e80 /tests/gem_concurrent_all.c | |
parent | 6f75990af0e8867ddbb10efaddb3f14333766a3f (diff) |
igt/gem_concurrent_blit: Close userptr handle after importing into bufmgr
The bufmgr import creates a new handle from a name for the userptr - we
can discard our original handle immediately.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_concurrent_all.c')
-rw-r--r-- | tests/gem_concurrent_all.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_concurrent_all.c b/tests/gem_concurrent_all.c index 834b8f3b..e0060b7f 100644 --- a/tests/gem_concurrent_all.c +++ b/tests/gem_concurrent_all.c @@ -270,6 +270,7 @@ userptr_create_bo(drm_intel_bufmgr *bufmgr, int width, int height) do_or_die(drmIoctl(fd, LOCAL_IOCTL_I915_GEM_USERPTR, &userptr)); bo = gem_handle_to_libdrm_bo(bufmgr, fd, "userptr", userptr.handle); bo->virtual = (void *)(uintptr_t)userptr.user_ptr; + gem_close(fd, userptr.handle); return bo; } |