[PATCH v2 i-g-t] aubdump: support new ioctl

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

 



Otherwise we won't log anything with OpenGL applications using a
recent Mesa driver.

v2: This requires updated uapi headers, hence the libdrm dependency
    bump (Petri)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@xxxxxxxxx>
---
 configure.ac    | 4 ++--
 tools/aubdump.c | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5bdd744a..06c19f14 100644
--- a/configure.ac
+++ b/configure.ac
@@ -182,10 +182,10 @@ AC_ARG_ENABLE(intel, AS_HELP_STRING([--disable-intel],
 	      [Enable building of intel specific parts (default: auto)]),
 	      [INTEL=$enableval], [INTEL=auto])
 if test "x$INTEL" = xauto; then
-	PKG_CHECK_EXISTS([libdrm_intel >= 2.4.74], [INTEL=yes], [INTEL=no])
+	PKG_CHECK_EXISTS([libdrm_intel >= 2.4.75], [INTEL=yes], [INTEL=no])
 fi
 if test "x$INTEL" = xyes; then
-	PKG_CHECK_MODULES(DRM_INTEL, [libdrm_intel >= 2.4.74])
+	PKG_CHECK_MODULES(DRM_INTEL, [libdrm_intel >= 2.4.75])
 	AC_DEFINE(HAVE_LIBDRM_INTEL, 1, [Have intel support])
 else
 	DRM_INTEL_CFLAGS=-I$\(top_srcdir\)/lib/stubs/drm/
diff --git a/tools/aubdump.c b/tools/aubdump.c
index d53addc2..59ef3e7e 100644
--- a/tools/aubdump.c
+++ b/tools/aubdump.c
@@ -632,7 +632,8 @@ ioctl(int fd, unsigned long request, ...)
 			return libc_ioctl(fd, request, argp);
 		}

-		case DRM_IOCTL_I915_GEM_EXECBUFFER2: {
+		case DRM_IOCTL_I915_GEM_EXECBUFFER2:
+		case DRM_IOCTL_I915_GEM_EXECBUFFER2_WR: {
 			dump_execbuffer2(fd, argp);
 			if (device_override)
 				return 0;
--
2.11.0
_______________________________________________
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