[igt-dev] [PATCH i-g-t v2 6/9] benchmarks/gem_busy: nuke LOCAL_IOCTL_SYNCOBJ_CREATE

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


This is DRM_IOCTL_SYNCOBJ_CREATE.

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

diff --git a/benchmarks/gem_busy.c b/benchmarks/gem_busy.c
index 70885e25..d417bfe9 100644
--- a/benchmarks/gem_busy.c
+++ b/benchmarks/gem_busy.c
@@ -114,13 +114,10 @@ static int sync_merge(int fd1, int fd2)
 
 static uint32_t __syncobj_create(int fd)
 {
-	struct local_syncobj_create {
-		uint32_t handle, flags;
-	} arg;
-#define LOCAL_IOCTL_SYNCOBJ_CREATE        DRM_IOWR(0xBF, struct local_syncobj_create)
+	struct drm_syncobj_create arg;
 
 	memset(&arg, 0, sizeof(arg));
-	ioctl(fd, LOCAL_IOCTL_SYNCOBJ_CREATE, &arg);
+	ioctl(fd, DRM_IOCTL_SYNCOBJ_CREATE, &arg);
 
 	return arg.handle;
 }
-- 
2.31.1



More information about the igt-dev mailing list