summaryrefslogtreecommitdiff
path: root/lib/ioctl_wrappers.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-03-16 22:46:30 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-03-16 22:51:48 +0000
commit673bf767ebba2936fd41b3e8ab57ca4d38cc7b08 (patch)
treeaf070935b3973f8184f860b690dbb2930409fe4f /lib/ioctl_wrappers.c
parentd08d2635c8a8230f2831d3a336f570aa3a38fe68 (diff)
lib: Remove requirements spam from gem_set_tiling()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
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 4d30443f..72fb0ebc 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -165,8 +165,6 @@ int __gem_set_tiling(int fd, uint32_t handle, uint32_t tiling, uint32_t stride)
struct drm_i915_gem_set_tiling st;
int ret;
- igt_require_intel(fd);
-
/* The kernel doesn't know about these tiling modes, expects NONE */
if (tiling == I915_TILING_Yf || tiling == I915_TILING_Ys)
tiling = I915_TILING_NONE;
@@ -1518,6 +1516,8 @@ void igt_require_gem(int fd)
{
int err;
+ igt_require_intel(fd);
+
err = 0;
if (ioctl(fd, DRM_IOCTL_I915_GEM_THROTTLE))
err = -errno;