Make the fields and flags available.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -297,13 +297,17 @@ union drm_vmw_surface_reference_arg { · 296 unmodified lines | ||
| 297 | 297 | * @version: Allows expanding the execbuf ioctl parameters without breaking |
| 298 | 298 | * backwards compatibility, since user-space will always tell the kernel |
| 299 | 299 | * which version it uses. |
| 300 | − * @flags: Execbuf flags. None currently. | |
| 300 | + * @flags: Execbuf flags. | |
| 301 | + * @imported_fence_fd: FD for a fence imported from another device | |
| 301 | 302 | * |
| 302 | 303 | * Argument to the DRM_VMW_EXECBUF Ioctl. |
| 303 | 304 | */ |
| 304 | 305 | |
| 305 | 306 | #define DRM_VMW_EXECBUF_VERSION 2 |
| 306 | 307 | |
| 308 | +#define DRM_VMW_EXECBUF_FLAG_IMPORT_FENCE_FD (1 << 0) | |
| 309 | +#define DRM_VMW_EXECBUF_FLAG_EXPORT_FENCE_FD (1 << 1) | |
| 310 | + | |
| 307 | 311 | struct drm_vmw_execbuf_arg { |
| 308 | 312 | __u64 commands; |
| 309 | 313 | __u32 command_size; |
| @@ -312,7 +316,7 @@ struct drm_vmw_execbuf_arg { · 2 unmodified lines | ||
| 312 | 316 | __u32 version; |
| 313 | 317 | __u32 flags; |
| 314 | 318 | __u32 context_handle; |
| 315 | − __u32 pad64; | |
| 319 | + __s32 imported_fence_fd; | |
| 316 | 320 | }; |
| 317 | 321 | |
| 318 | 322 | /** |
| @@ -328,6 +332,7 @@ struct drm_vmw_execbuf_arg { · 9 unmodified lines | ||
| 328 | 332 | * @passed_seqno: The highest seqno number processed by the hardware |
| 329 | 333 | * so far. This can be used to mark user-space fence objects as signaled, and |
| 330 | 334 | * to determine whether a fence seqno might be stale. |
| 335 | + * @fd: FD associated with the fence, -1 if not exported | |
| 331 | 336 | * @error: This member should've been set to -EFAULT on submission. |
| 332 | 337 | * The following actions should be take on completion: |
| 333 | 338 | * error == -EFAULT: Fence communication failed. The host is synchronized. |
| @@ -345,7 +350,7 @@ struct drm_vmw_fence_rep { · 11 unmodified lines | ||
| 345 | 350 | __u32 mask; |
| 346 | 351 | __u32 seqno; |
| 347 | 352 | __u32 passed_seqno; |
| 348 | − __u32 pad64; | |
| 353 | + __s32 fd; | |
| 349 | 354 | __s32 error; |
| 350 | 355 | }; |
| 351 | 356 | |