lib/drmtest: extract gem_close

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2012-01-10 15:07:19 +01:00
parent aa67b22e42
commit 5dd17d3f4b
17 changed files with 9 additions and 138 deletions
-8
View File
@@ -410,14 +410,6 @@ static void *gem_mmap(int fd, uint32_t handle, int size, int prot)
return ptr;
}
static void gem_close(int fd, uint32_t handle)
{
struct drm_gem_close close;
close.handle = handle;
(void)drmIoctl(fd, DRM_IOCTL_GEM_CLOSE, &close);
}
static cairo_surface_t *
allocate_surface(int fd, int width, int height, uint32_t depth,
uint32_t *handle, int tiled)