aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie2017-10-25 01:43:56 -0500
committerDave Airlie2017-10-25 01:44:31 -0500
commit61ff9779e37179ed5106c0e2452e16500127fb9e (patch)
treeb754a7428ad37d5f4eec54795faa8722f8aacd38 /xf86drm.c
parent0d889201d106f7f440a0e45b3fef554c31e2a551 (diff)
downloadexternal-libgbm-61ff9779e37179ed5106c0e2452e16500127fb9e.tar.gz
external-libgbm-61ff9779e37179ed5106c0e2452e16500127fb9e.tar.xz
external-libgbm-61ff9779e37179ed5106c0e2452e16500127fb9e.zip
drm/syncobj: fix some whitespace issues
These had tabs, just remove them. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'xf86drm.c')
-rw-r--r--xf86drm.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/xf86drm.c b/xf86drm.c
index 8a327170..c44621c1 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -4155,7 +4155,7 @@ int drmSyncobjCreate(int fd, uint32_t flags, uint32_t *handle)
4155 args.handle = 0; 4155 args.handle = 0;
4156 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_CREATE, &args); 4156 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_CREATE, &args);
4157 if (ret) 4157 if (ret)
4158 return ret; 4158 return ret;
4159 *handle = args.handle; 4159 *handle = args.handle;
4160 return 0; 4160 return 0;
4161} 4161}
@@ -4179,7 +4179,7 @@ int drmSyncobjHandleToFD(int fd, uint32_t handle, int *obj_fd)
4179 args.handle = handle; 4179 args.handle = handle;
4180 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD, &args); 4180 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD, &args);
4181 if (ret) 4181 if (ret)
4182 return ret; 4182 return ret;
4183 *obj_fd = args.fd; 4183 *obj_fd = args.fd;
4184 return 0; 4184 return 0;
4185} 4185}
@@ -4194,7 +4194,7 @@ int drmSyncobjFDToHandle(int fd, int obj_fd, uint32_t *handle)
4194 args.handle = 0; 4194 args.handle = 0;
4195 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE, &args); 4195 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE, &args);
4196 if (ret) 4196 if (ret)
4197 return ret; 4197 return ret;
4198 *handle = args.handle; 4198 *handle = args.handle;
4199 return 0; 4199 return 0;
4200} 4200}
@@ -4221,29 +4221,29 @@ int drmSyncobjExportSyncFile(int fd, uint32_t handle, int *sync_file_fd)
4221 args.flags = DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE; 4221 args.flags = DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE;
4222 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD, &args); 4222 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD, &args);
4223 if (ret) 4223 if (ret)
4224 return ret; 4224 return ret;
4225 *sync_file_fd = args.fd; 4225 *sync_file_fd = args.fd;
4226 return 0; 4226 return 0;
4227} 4227}
4228 4228
4229int drmSyncobjWait(int fd, uint32_t *handles, unsigned num_handles, 4229int drmSyncobjWait(int fd, uint32_t *handles, unsigned num_handles,
4230 int64_t timeout_nsec, unsigned flags, 4230 int64_t timeout_nsec, unsigned flags,
4231 uint32_t *first_signaled) 4231 uint32_t *first_signaled)
4232{ 4232{
4233 struct drm_syncobj_wait args; 4233 struct drm_syncobj_wait args;
4234 int ret; 4234 int ret;
4235 4235
4236 memclear(args); 4236 memclear(args);
4237 args.handles = (intptr_t)handles; 4237 args.handles = (intptr_t)handles;
4238 args.timeout_nsec = timeout_nsec; 4238 args.timeout_nsec = timeout_nsec;
4239 args.count_handles = num_handles; 4239 args.count_handles = num_handles;
4240 args.flags = flags; 4240 args.flags = flags;
4241 4241
4242 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_WAIT, &args); 4242 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_WAIT, &args);
4243 if (ret < 0) 4243 if (ret < 0)
4244 return ret; 4244 return ret;
4245 4245
4246 if (first_signaled) 4246 if (first_signaled)
4247 *first_signaled = args.first_signaled; 4247 *first_signaled = args.first_signaled;
4248 return ret; 4248 return ret;
4249} 4249}