summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.com>2016-02-09 10:17:18 +0100
committerDaniel Stone <daniels@collabora.com>2016-04-14 13:54:24 +0100
commit6755757e9f71918949ac02e6971d97fa662c1ba2 (patch)
tree7f26a5e0d1a9ce83b57aa7dfb1cc1ba779d3b847 /lib
parent3fee80efcfb41cc7f25afa968bb38e68faa6c34c (diff)
lib: Have gem_set_tiling require intel
Before calling a i915-specific IOCTL, require i915. This allows us to skip subtests that are specific to that driver, though what should eventually happen is that tests don't generally call gem_set_tiling directly but go through an abstraction layer that constructs the buffer object in a driver-specific way. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib')
-rw-r--r--lib/ioctl_wrappers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ioctl_wrappers.c b/lib/ioctl_wrappers.c
index c47eaa42..f224091e 100644
--- a/lib/ioctl_wrappers.c
+++ b/lib/ioctl_wrappers.c
@@ -141,6 +141,8 @@ 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);
+
memset(&st, 0, sizeof(st));
do {
st.handle = handle;