Mesa (master): intel/drm-shim: Add noop ioctl handler for set_tiling

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 19 19:14:49 UTC 2020


Module: Mesa
Branch: master
Commit: c8635b6fd350baaf85e87f06ffb76b080094df17
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c8635b6fd350baaf85e87f06ffb76b080094df17

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Thu May 14 16:43:56 2020 -0700

intel/drm-shim: Add noop ioctl handler for set_tiling

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 at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5061>

---

 src/intel/tools/intel_noop_drm_shim.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/intel/tools/intel_noop_drm_shim.c b/src/intel/tools/intel_noop_drm_shim.c
index 205dc2df3da..89d1ce50e26 100644
--- a/src/intel/tools/intel_noop_drm_shim.c
+++ b/src/intel/tools/intel_noop_drm_shim.c
@@ -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,



More information about the mesa-commit mailing list