intel/drm-shim: Add noop ioctl handler for set_tiling
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 14 May 2020 23:43:56 +0000 (16:43 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 18:55:29 +0000 (18:55 +0000)
When using the shim for HSW and earlier, this fixes:

    DRM_SHIM: unhandled driver DRM ioctl 33 (0xc0106461)

Fixes: 0f4f1d70bfe ("intel: add stub_gpu tool")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5061>

src/intel/tools/intel_noop_drm_shim.c

index 205dc2df3dae7066d25b6bbda6c2d26810a1b098..89d1ce50e2669488577a7706977b872cf797b015 100644 (file)
@@ -296,6 +296,7 @@ static ioctl_fn_t driver_ioctls[] = {
 
    [DRM_I915_GEM_CREATE] = i915_ioctl_gem_create,
    [DRM_I915_GEM_MMAP] = i915_ioctl_gem_mmap,
+   [DRM_I915_GEM_SET_TILING] = i915_ioctl_noop,
    [DRM_I915_GEM_CONTEXT_CREATE] = i915_ioctl_gem_context_create,
    [DRM_I915_GEM_CONTEXT_DESTROY] = i915_ioctl_noop,
    [DRM_I915_GEM_CONTEXT_GETPARAM] = i915_ioctl_gem_context_getparam,