Mesa (master): intel/dump_gpu: handle context create extended ioctl

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Oct 30 19:59:13 UTC 2019


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

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Fri Oct 25 13:52:47 2019 +0300

intel/dump_gpu: handle context create extended ioctl

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli at intel.com>

---

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

diff --git a/src/intel/tools/intel_dump_gpu.c b/src/intel/tools/intel_dump_gpu.c
index db80fd4ada7..198eb9891fd 100644
--- a/src/intel/tools/intel_dump_gpu.c
+++ b/src/intel/tools/intel_dump_gpu.c
@@ -492,6 +492,21 @@ ioctl(int fd, unsigned long request, ...)
          return ret;
       }
 
+      case DRM_IOCTL_I915_GEM_CONTEXT_CREATE_EXT: {
+         uint32_t *ctx_id = NULL;
+         struct drm_i915_gem_context_create_ext *create = argp;
+         ret = 0;
+         if (!device_override) {
+            ret = libc_ioctl(fd, request, argp);
+            ctx_id = &create->ctx_id;
+         }
+
+         if (ret == 0)
+            create->ctx_id = dump_create_context(fd, ctx_id);
+
+         return ret;
+      }
+
       case DRM_IOCTL_I915_GEM_CREATE: {
          struct drm_i915_gem_create *create = argp;
 




More information about the mesa-commit mailing list