diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-04-29 10:16:22 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-04-29 10:16:22 +0000 |
commit | b70612f9701a036047dfacd71b8afab5d64ba21f (patch) | |
tree | 6b7ca2d3079e36e7aae0a28da3e680907312fe3e /lib/libdrm/radeon/radeon_bo_gem.c | |
parent | f6a607883d3ddd203eef4b1917035e470b47e760 (diff) |
Merge libdrm 2.4.110
Diffstat (limited to 'lib/libdrm/radeon/radeon_bo_gem.c')
-rw-r--r-- | lib/libdrm/radeon/radeon_bo_gem.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/libdrm/radeon/radeon_bo_gem.c b/lib/libdrm/radeon/radeon_bo_gem.c index 86f7c0070..bbe72ce01 100644 --- a/lib/libdrm/radeon/radeon_bo_gem.c +++ b/lib/libdrm/radeon/radeon_bo_gem.c @@ -125,7 +125,6 @@ static void bo_ref(struct radeon_bo_int *boi) static struct radeon_bo *bo_unref(struct radeon_bo_int *boi) { struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi; - struct drm_gem_close args; if (boi->cref) { return (struct radeon_bo *)boi; @@ -134,12 +133,8 @@ static struct radeon_bo *bo_unref(struct radeon_bo_int *boi) drm_munmap(bo_gem->priv_ptr, boi->size); } - /* Zero out args to make valgrind happy */ - memset(&args, 0, sizeof(args)); - /* close object */ - args.handle = boi->handle; - drmIoctl(boi->bom->fd, DRM_IOCTL_GEM_CLOSE, &args); + drmCloseBufferHandle(boi->bom->fd, boi->handle); memset(bo_gem, 0, sizeof(struct radeon_bo_gem)); free(bo_gem); return NULL; |