Thread (19 messages) 19 messages, 4 authors, 2021-07-15

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

From: Lucas De Marchi <hidden>
Date: 2021-07-11 06:12:23
Subsystem: the rest · Maintainer: Linus Torvalds

This is DRM_IOCTL_SYNCOBJ_CREATE.

Signed-off-by: Lucas De Marchi <redacted>
---
 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

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help