diff options
author | Erik Kurzinger <ekurzinger@nvidia.com> | 2022-08-16 11:55:43 -0700 |
---|---|---|
committer | Erik Kurzinger <ekurzinger@nvidia.com> | 2024-03-25 06:56:52 -0700 |
commit | 62323c75c8876d302b85c8d90c72e8ae3b23d068 (patch) | |
tree | ff0b0e6dcf53fdea1b810db66b268af0b337d928 /include/X11/extensions/presentproto.h | |
parent | bf661c1c34afb32d8c73b471c17c5bc5912fb346 (diff) |
Present: add PresentPixmapSynced
Adds an augmented version of PresentPixmap supporting explicit
synchronization with a direct rendering device. This takes the form of
timeline DRM synchronization objects, along with acquire and release
points on those timelines. Implementations advertising
PresentCapabilitySyncobj will wait for the acquire point to be signaled
before executing the PresentPixmap request, and signal the release point
after any GPU operations on the pixmap have completed.
Signed-off-by: Erik Kurzinger <ekurzinger@nvidia.com>
Diffstat (limited to 'include/X11/extensions/presentproto.h')
-rw-r--r-- | include/X11/extensions/presentproto.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/X11/extensions/presentproto.h b/include/X11/extensions/presentproto.h index d8dc6d2..ea80863 100644 --- a/include/X11/extensions/presentproto.h +++ b/include/X11/extensions/presentproto.h @@ -24,6 +24,7 @@ #define _PRESENT_PROTO_H_ #include <X11/extensions/presenttokens.h> +#include <X11/extensions/dri3proto.h> #define Window CARD32 #define Pixmap CARD32 @@ -136,6 +137,37 @@ typedef struct { } xPresentQueryCapabilitiesReply; #define sz_xPresentQueryCapabilitiesReply 32 +typedef struct { + CARD8 reqType; + CARD8 presentReqType; + CARD16 length; + Window window; + + Pixmap pixmap; + CARD32 serial; + + Region valid; + Region update; + + INT16 x_off; + INT16 y_off; + CARD32 target_crtc; + + DRI3Syncobj acquire_syncobj; + DRI3Syncobj release_syncobj; + CARD64 acquire_point; + CARD64 release_point; + + CARD32 options; + CARD32 pad1; + + CARD64 target_msc; + CARD64 divisor; + CARD64 remainder; + /* followed by a LISTofPRESENTNOTIFY */ +} xPresentPixmapSyncedReq; +#define sz_xPresentPixmapSyncedReq 88 + /* * Events * |