summaryrefslogtreecommitdiff
path: root/lib/ioctl_wrappers.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2015-02-06 10:53:10 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-02-13 09:35:35 +0100
commitc18b2d57a98c061845e0ec31bfffc90e03356aaa (patch)
tree0850b537dd06ae989e8bd8cfe4d48b0a598d6b6d /lib/ioctl_wrappers.c
parentc66b2425e706bec5ce6df8664d19b06e047eb0ee (diff)
lib/ioctl: api polish for gem_context_has_param
Just push the igt_require down to align with the usual style. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'lib/ioctl_wrappers.c')
-rw-r--r--lib/ioctl_wrappers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
index 19a457ac..dd89e2c5 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -1080,7 +1080,7 @@ int gem_context_set_param(int fd, struct local_i915_gem_context_param *p)
return 0;
}
-int gem_context_has_param(int fd, uint64_t param)
+void gem_context_require_param(int fd, uint64_t param)
{
struct local_i915_gem_context_param p;
@@ -1089,5 +1089,5 @@ int gem_context_has_param(int fd, uint64_t param)
p.value = 0;
p.size = 0;
- return gem_context_get_param(fd, &p) == 0;
+ igt_require(gem_context_get_param(fd, &p) == 0);
}