summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChunming Zhou <david1.zhou@amd.com>2019-07-30 21:02:08 +0800
committerChristian König <christian.koenig@amd.com>2019-10-18 12:24:56 +0200
commit2093dea3def9d5bf3000697ae3b0ec36c43354e0 (patch)
tree729013493e55140ac733d020f46f5aacc7767afa /include
parentbe428f2451809b0d6132893bc33a2b1f29fd3adf (diff)
downloadlinux-2093dea3def9d5bf3000697ae3b0ec36c43354e0.tar.bz2
drm/syncobj: extend syncobj query ability v3
user space needs a flexiable query ability. So that umd can get last signaled or submitted point. v2: add sanitizer checking. v3: rebase Change-Id: I6512b430524ebabe715e602a2bf5abb0a7e780ea Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: Christian König <Christian.Koenig@amd.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/series/64044/
Diffstat (limited to 'include')
-rw-r--r--include/uapi/drm/drm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index 8a5b2f8f8eb9..868bf7996c0f 100644
--- a/include/uapi/drm/drm.h
+++ b/include/uapi/drm/drm.h
@@ -778,11 +778,12 @@ struct drm_syncobj_array {
__u32 pad;
};
+#define DRM_SYNCOBJ_QUERY_FLAGS_LAST_SUBMITTED (1 << 0) /* last available point on timeline syncobj */
struct drm_syncobj_timeline_array {
__u64 handles;
__u64 points;
__u32 count_handles;
- __u32 pad;
+ __u32 flags;
};