summaryrefslogtreecommitdiff
path: root/include/X11/extensions/dri3proto.h
diff options
context:
space:
mode:
authorAustin Shafer <ashafer@badland.io>2021-11-30 15:00:29 -0500
committerOlivier Fourdan <fourdan@gmail.com>2022-05-25 06:31:56 +0000
commit74255ccfd895e70156c45a2c51174c852b64bc71 (patch)
tree1512795bcee1d113b7884b3e19322b69d1d98543 /include/X11/extensions/dri3proto.h
parent8c8bbb903410e39140727867a26bbe501f77de8f (diff)
DRI3: Add DRI3SetDRMDeviceInUse
DRI3SetDRMDeviceInUse is a hint that lets a client tell the server what DRM device it is currently using. This lets the server make more informed decisions for what modifiers to return to the client. This is needed for proper linux dmabuf feedback with Xwayland
Diffstat (limited to 'include/X11/extensions/dri3proto.h')
-rw-r--r--include/X11/extensions/dri3proto.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/include/X11/extensions/dri3proto.h b/include/X11/extensions/dri3proto.h
index d1f909b..9cba105 100644
--- a/include/X11/extensions/dri3proto.h
+++ b/include/X11/extensions/dri3proto.h
@@ -25,7 +25,7 @@
#define DRI3_NAME "DRI3"
#define DRI3_MAJOR 1
-#define DRI3_MINOR 2
+#define DRI3_MINOR 3
#define DRI3NumberErrors 0
#define DRI3NumberEvents 0
@@ -42,7 +42,10 @@
#define xDRI3PixmapFromBuffers 7
#define xDRI3BuffersFromPixmap 8
-#define DRI3NumberRequests 9
+/* v1.3 */
+#define xDRI3SetDRMDeviceInUse 9
+
+#define DRI3NumberRequests 10
typedef struct {
CARD8 reqType;
@@ -246,4 +249,16 @@ typedef struct {
} xDRI3BuffersFromPixmapReply;
#define sz_xDRI3BuffersFromPixmapReply 32
+/* v1.3 */
+
+typedef struct {
+ CARD8 reqType;
+ CARD8 dri3ReqType;
+ CARD16 length;
+ CARD32 window;
+ CARD32 drmMajor;
+ CARD32 drmMinor;
+} xDRI3SetDRMDeviceInUseReq;
+#define sz_xDRI3SetDRMDeviceInUseReq 16
+
#endif