[igt-dev] [PATCH i-g-t v2 5/9] benchmarks/gem_exec_tracer: nuke LOCAL_IOCTL_I915_GEM_EXECBUFFER2_WR

Lucas De Marchi lucas.demarchi at intel.com
Sun Jul 11 06:12:07 UTC 2021


Use DRM_IOCTL_I915_GEM_EXECBUFFER2_WR from kernel header.

Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
---
 benchmarks/gem_exec_tracer.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/benchmarks/gem_exec_tracer.c b/benchmarks/gem_exec_tracer.c
index c8f4e84b..e6973991 100644
--- a/benchmarks/gem_exec_tracer.c
+++ b/benchmarks/gem_exec_tracer.c
@@ -266,9 +266,6 @@ static int is_i915(int fd)
 	return strcmp(name, "i915") == 0;
 }
 
-#define LOCAL_IOCTL_I915_GEM_EXECBUFFER2_WR \
-    DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_EXECBUFFER2, struct drm_i915_gem_execbuffer2)
-
 int
 ioctl(int fd, unsigned long request, ...)
 {
@@ -327,7 +324,7 @@ ioctl(int fd, unsigned long request, ...)
 
 	switch (request) {
 	case DRM_IOCTL_I915_GEM_EXECBUFFER2:
-	case LOCAL_IOCTL_I915_GEM_EXECBUFFER2_WR:
+	case DRM_IOCTL_I915_GEM_EXECBUFFER2_WR:
 		trace_exec(t, argp);
 		break;
 
-- 
2.31.1



More information about the igt-dev mailing list