drm: Add universal plane capability bit and plane type enums

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
main
Matt Roper 2014-04-10 14:23:12 -07:00 committed by Rob Clark
parent 305478ce02
commit 8fc62ca8ac
2 changed files with 12 additions and 0 deletions

View File

@ -627,6 +627,14 @@ struct drm_get_cap {
*/ */
#define DRM_CLIENT_CAP_STEREO_3D 1 #define DRM_CLIENT_CAP_STEREO_3D 1
/**
* DRM_CLIENT_CAP_UNIVERSAL_PLANES
*
* if set to 1, the DRM core will expose the full universal plane list
* (including primary and cursor planes).
*/
#define DRM_CLIENT_CAP_UNIVERSAL_PLANES 2
/** DRM_IOCTL_SET_CLIENT_CAP ioctl argument type */ /** DRM_IOCTL_SET_CLIENT_CAP ioctl argument type */
struct drm_set_client_cap { struct drm_set_client_cap {
__u64 capability; __u64 capability;

View File

@ -296,6 +296,10 @@ typedef struct _drmModeConnector {
uint32_t *encoders; /**< List of encoder ids */ uint32_t *encoders; /**< List of encoder ids */
} drmModeConnector, *drmModeConnectorPtr; } drmModeConnector, *drmModeConnectorPtr;
#define DRM_PLANE_TYPE_OVERLAY 0
#define DRM_PLANE_TYPE_PRIMARY 1
#define DRM_PLANE_TYPE_CURSOR 2
typedef struct _drmModeObjectProperties { typedef struct _drmModeObjectProperties {
uint32_t count_props; uint32_t count_props;
uint32_t *props; uint32_t *props;