diff options
| author | Terje Bergstrom <tbergstrom@nvidia.com> | 2013-09-10 10:35:00 +0300 |
|---|---|---|
| committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2013-12-24 22:56:34 -0800 |
| commit | 6745c0805ed6546e2fd4cb27d19518e2c5bf2076 (patch) | |
| tree | 47818bd06343a8b5d4b33f8d2be69d3c0ca92583 /include/linux/nvhost_ioctl.h | |
| parent | 6d2215d983aa3c366c9b18828168374b46d3f23f (diff) | |
video: tegra: host: Return a sync fd as fence
Add a flag to submit interface to get the fence as sync fd instead of
a pair of sync point id and value.
Bug 1356557
Change-Id: Id0ac9d6fe40fcc8768edcaedee0832a45cacc50d
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/288797
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'include/linux/nvhost_ioctl.h')
| -rw-r--r-- | include/linux/nvhost_ioctl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/nvhost_ioctl.h b/include/linux/nvhost_ioctl.h index dd903ca742db..e008826c194d 100644 --- a/include/linux/nvhost_ioctl.h +++ b/include/linux/nvhost_ioctl.h @@ -277,6 +277,8 @@ struct nvhost32_submit_args { __u32 fence; /* Return value */ } __packed; +#define NVHOST_SUBMIT_FLAG_SYNC_FENCE_FD 0 + struct nvhost_submit_args { __u32 submit_version; __u32 num_syncpt_incrs; @@ -287,8 +289,10 @@ struct nvhost_submit_args { __u32 syncpt_incrs; __u32 fence; /* Return value */ __u64 cmdbuf_exts; + __u32 flags; - __u64 pad[3]; /* future expansion */ + __u32 reserved; + __u64 pad[2]; /* future expansion */ __u64 cmdbufs; __u64 relocs; |
