diff options
author | Austin Shafer <ashafer@badland.io> | 2021-11-30 15:00:29 -0500 |
---|---|---|
committer | Olivier Fourdan <fourdan@gmail.com> | 2022-05-25 06:31:56 +0000 |
commit | 74255ccfd895e70156c45a2c51174c852b64bc71 (patch) | |
tree | 1512795bcee1d113b7884b3e19322b69d1d98543 /dri3proto.txt | |
parent | 8c8bbb903410e39140727867a26bbe501f77de8f (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 'dri3proto.txt')
-rw-r--r-- | dri3proto.txt | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/dri3proto.txt b/dri3proto.txt index 94322e7..c267574 100644 --- a/dri3proto.txt +++ b/dri3proto.txt @@ -1,6 +1,6 @@ The DRI3 Extension - Version 1.2 - 2018-02-28 + Version 1.3 + 2021-11-30 Keith Packard keithp@keithp.com @@ -34,6 +34,7 @@ Kristian Høgsberg <krh@bitplanet.net> James Jones <jajones@nvidia.com> Arthur Huillet <arthur.huillet@free.fr> Louis-Francis Ratté-Boulianne <lfrb@collabora.com> +Austin Shafer <ashafer@nvidia.com> ❄ ❄ ❄ ❄ ❄ ❄ ❄ @@ -371,6 +372,28 @@ The name of this extension is "DRI3" For information on synchronization of buffer access between the client and the X server, please see section 12. +┌─── + DRI3SetDRMDeviceInUse + window: WINDOW + drmMajor: CARD32 + drmMinor: CARD32 +└─── + Errors: Window + + This request provides a hint to the server about the device + in use by this window. This is used to provide + DRI3GetSupportedModifiers with a hint of what device to + return modifiers for in the window_modifiers return value. + Using this hint allows for device-specific modifiers to + be returned by DRI3GetSupportedModifiers, for example + when an application is renderoffloaded and eligible for + direct scanout. + + This is only a hint, and may or may not be reflected in + the modifier list returned. + + If the window specified was not found, a Window error will + be returned. ❄ ❄ ❄ ❄ ❄ ❄ ❄ @@ -391,6 +414,8 @@ The DRI3 extension is adapted from the DRI2 extension. 1.2: Add GetSupportedModifiers, PixmapFromBuffers, and BuffersFromPixmap requests. + 1.3: Add SetDRMDeviceInUse + ❄ ❄ ❄ ❄ ❄ ❄ ❄ @@ -668,6 +693,16 @@ A.2 Protocol Requests 4 ListOfCARD32 offsets[nfd] └─── +┌─── + DRI3SetDRMDeviceInUse + 1 CARD8 major opcode + 1 10 DRI3 opcode + 2 4 length + 4 Window window + 4 CARD32 drmMajor + 4 CARD32 drmMinor +└─── + A.3 Protocol Events The DRI3 extension defines no events. |