Skip to content

Commit ba9eb6d

Browse files
PolyMeilexDrakulix
authored andcommitted
Update ClientCapabilityies
1 parent dc77fd3 commit ba9eb6d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/lib.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,24 @@ pub enum ClientCapability {
310310
UniversalPlanes = drm_ffi::DRM_CLIENT_CAP_UNIVERSAL_PLANES as u64,
311311
/// The driver provides atomic modesetting
312312
Atomic = drm_ffi::DRM_CLIENT_CAP_ATOMIC as u64,
313+
/// If set to 1, the DRM core will provide aspect ratio information in modes.
314+
AspectRatio = drm_ffi::DRM_CLIENT_CAP_ASPECT_RATIO as u64,
315+
/// If set to 1, the DRM core will expose special connectors to be used for
316+
/// writing back to memory the scene setup in the commit.
317+
///
318+
/// The client must enable [`Self::Atomic`] first.
319+
WritebackConnectors = drm_ffi::DRM_CLIENT_CAP_WRITEBACK_CONNECTORS as u64,
320+
/// Drivers for para-virtualized hardware have additional restrictions for cursor planes e.g.
321+
/// they need cursor planes to act like one would expect from a mouse
322+
/// cursor and have correctly set hotspot properties.
323+
/// If this client cap is not set the DRM core will hide cursor plane on
324+
/// those virtualized drivers because not setting it implies that the
325+
/// client is not capable of dealing with those extra restictions.
326+
/// Clients which do set cursor hotspot and treat the cursor plane
327+
/// like a mouse cursor should set this property.
328+
///
329+
/// The client must enable [`Self::Atomic`] first.
330+
CursorPlaneHotspot = drm_ffi::DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT as u64,
313331
}
314332

315333
/// Used to specify a vblank sequence to wait for

0 commit comments

Comments
 (0)