summaryrefslogtreecommitdiff
path: root/tools/aubdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/aubdump.c')
-rw-r--r--tools/aubdump.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/aubdump.c b/tools/aubdump.c
index 6501ee02..73334a30 100644
--- a/tools/aubdump.c
+++ b/tools/aubdump.c
@@ -428,7 +428,17 @@ ioctl(int fd, unsigned long request, ...)
*getparam->value = device;
return 0;
}
- return libc_ioctl(fd, request, argp);
+
+ ret = libc_ioctl(fd, request, argp);
+
+ /* If the application looks up chipset_id
+ * (they typically do), we'll piggy-back on
+ * their ioctl and store the id for later
+ * use. */
+ if (getparam->param == I915_PARAM_CHIPSET_ID)
+ device = *getparam->value;
+
+ return ret;
}
case DRM_IOCTL_I915_GEM_EXECBUFFER: {