diff options
-rw-r--r-- | lib/ioctl_wrappers.c | 2 |
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; |