summaryrefslogtreecommitdiff
path: root/lib/ioctl_wrappers.h
diff options
context:
space:
mode:
authorMichał Winiarski <michal.winiarski@intel.com>2016-01-25 19:35:02 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-01-25 19:44:34 +0100
commite6ca4bd7cd911c2a422fd6961970fc5df2b071a0 (patch)
treee2f7d11a8bd2cefaf9041be1aaf2d1a80f81cf7f /lib/ioctl_wrappers.h
parent52b5d5016edfac14ca99c01fc7c2800eccbe11c0 (diff)
lib/ioctl_wrappers: Add gem_has_softpin
We can move it from softpin test into lib, and since softpin support is highly unlikely to go away in-between getparam ioctl calls, let's just do a single call and store the value. v2: rebase Signed-off-by: Michał Winiarski <michal.winiarski@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/ioctl_wrappers.h')
-rw-r--r--lib/ioctl_wrappers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ioctl_wrappers.h b/lib/ioctl_wrappers.h
index a6bf7004..04ac9bb7 100644
--- a/lib/ioctl_wrappers.h
+++ b/lib/ioctl_wrappers.h
@@ -132,6 +132,7 @@ int gem_available_fences(int fd);
uint64_t gem_available_aperture_size(int fd);
uint64_t gem_aperture_size(int fd);
uint64_t gem_mappable_aperture_size(void);
+bool gem_has_softpin(int fd);
/* check functions which auto-skip tests by calling igt_skip() */
void gem_require_caching(int fd);