[Intel-gfx] [PATCH] aubinator: Define DRM_IOCTL_I915_GEM_EXECBUFFER2_WR if unavailable

Jason Ekstrand jason at jlekstrand.net
Wed Mar 15 16:09:31 UTC 2017


Depending on what version of drm_i915.h you have, you may not have
this #define but it's required in order to properly dump aubs from
newer versions of mesa.
---

I have no idea what the back-porting procedure is for IGT.  If someone
could provide me with a tagline to ensure it lands in stable, that would be
good.

 tools/aubdump.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/aubdump.c b/tools/aubdump.c
index 08cee55..dba5b35 100644
--- a/tools/aubdump.c
+++ b/tools/aubdump.c
@@ -47,6 +47,10 @@
 #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
 #endif
 
+#ifndef DRM_IOCTL_I915_GEM_EXECBUFFER2_WR
+#define DRM_IOCTL_I915_GEM_EXECBUFFER2_WR	DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_EXECBUFFER2_WR, struct drm_i915_gem_execbuffer2)
+#endif
+
 static int close_init_helper(int fd);
 static int ioctl_init_helper(int fd, unsigned long request, ...);
 
-- 
2.5.0.400.gff86faf



More information about the Intel-gfx mailing list