Mesa (main): intel/tools: add support for GEM_CREATE_EXT in intel_dump_gpu

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 24 08:31:58 UTC 2022


Module: Mesa
Branch: main
Commit: 3910736f2941fe187895b6d08509e36d4c5a9e0a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3910736f2941fe187895b6d08509e36d4c5a9e0a

Author: Marcin Ślusarz <marcin.slusarz at intel.com>
Date:   Wed May 18 12:25:51 2022 +0200

intel/tools: add support for GEM_CREATE_EXT in intel_dump_gpu

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16664>

---

 src/intel/tools/intel_dump_gpu.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/intel/tools/intel_dump_gpu.c b/src/intel/tools/intel_dump_gpu.c
index 48e3392bc21..01f19c48141 100644
--- a/src/intel/tools/intel_dump_gpu.c
+++ b/src/intel/tools/intel_dump_gpu.c
@@ -657,6 +657,16 @@ ioctl(int fd, unsigned long request, ...)
          return ret;
       }
 
+      case DRM_IOCTL_I915_GEM_CREATE_EXT: {
+         struct drm_i915_gem_create_ext *create = argp;
+
+         ret = libc_ioctl(fd, request, argp);
+         if (ret == 0)
+            add_new_bo(fd, create->handle, create->size, NULL);
+
+         return ret;
+      }
+
       case DRM_IOCTL_I915_GEM_USERPTR: {
          struct drm_i915_gem_userptr *userptr = argp;
 



More information about the mesa-commit mailing list