[PATCH] aubinator: Define DRM_IOCTL_I915_GEM_EXECBUFFER2_WR if unavailable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux