mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 03:30:22 +01:00
xf86drmMode: introduce drmModeGetPropertyType
We already have drm_property_type_is, but it's needlessly complicated and doesn't cover all use-cases (requires the caller to provide a type). Signed-off-by: Simon Ser <contact@emersion.fr> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
f5abbc3033
commit
6d821612d9
1 changed files with 5 additions and 0 deletions
|
|
@ -151,6 +151,11 @@ static __inline int drm_property_type_is(drmModePropertyPtr property,
|
|||
return property->flags & type;
|
||||
}
|
||||
|
||||
static inline uint32_t drmModeGetPropertyType(const drmModePropertyRes *prop)
|
||||
{
|
||||
return prop->flags & (DRM_MODE_PROP_LEGACY_TYPE | DRM_MODE_PROP_EXTENDED_TYPE);
|
||||
}
|
||||
|
||||
typedef struct _drmModeCrtc {
|
||||
uint32_t crtc_id;
|
||||
uint32_t buffer_id; /**< FB id to connect to 0 = disconnect */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue