mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 21:02:59 +00:00
lib/drmtest: extract gem_close
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -107,16 +107,6 @@ static void gem_vmap_sync(int fd, uint32_t handle)
|
||||
assert(ret == 0);
|
||||
}
|
||||
|
||||
static void gem_close(int fd, uint32_t handle)
|
||||
{
|
||||
struct drm_gem_close close;
|
||||
int ret;
|
||||
|
||||
close.handle = handle;
|
||||
ret = drmIoctl(fd, DRM_IOCTL_GEM_CLOSE, &close);
|
||||
assert(ret == 0);
|
||||
}
|
||||
|
||||
static uint64_t
|
||||
gem_aperture_size(int fd)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user