The sync file functionality is required by the upcoming GPU render timeline work, but it's only available in relatively new linux kernel versions (4.7 and above). This commit provides a "sanitized" version of the required sync file definitions. On systems that don't have the sync file header (due to having an older kernel), we will be able to fall back to our own definitions when building. Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>dev
parent
7192b17f3e
commit
e39eb8f896
@ -0,0 +1,30 @@ |
||||
/* Sync file Linux kernel UAPI */ |
||||
|
||||
#ifndef WESTON_SYNC_FILE_H |
||||
#define WESTON_SYNC_FILE_H |
||||
|
||||
#include <linux/ioctl.h> |
||||
#include <linux/types.h> |
||||
|
||||
struct sync_fence_info { |
||||
char obj_name[32]; |
||||
char driver_name[32]; |
||||
__s32 status; |
||||
__u32 flags; |
||||
__u64 timestamp_ns; |
||||
}; |
||||
|
||||
struct sync_file_info { |
||||
char name[32]; |
||||
__s32 status; |
||||
__u32 flags; |
||||
__u32 num_fences; |
||||
__u32 pad; |
||||
|
||||
__u64 sync_fence_info; |
||||
}; |
||||
|
||||
#define SYNC_IOC_MAGIC '>' |
||||
#define SYNC_IOC_FILE_INFO _IOWR(SYNC_IOC_MAGIC, 4, struct sync_file_info) |
||||
|
||||
#endif |
Loading…
Reference in new issue