kms: Support bitmasks
From our perspective, a bitmask is pretty much the same as an enum, so allow it to use the same path. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
e3ec879d11
commit
397ed8cec5
|
@ -381,9 +381,11 @@ drm_property_info_populate(struct drm_device *device,
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!(prop->flags & DRM_MODE_PROP_ENUM)) {
|
||||
weston_log("DRM: expected property %s to be an enum,"
|
||||
" but it is not; ignoring\n", prop->name);
|
||||
if (!(prop->flags & DRM_MODE_PROP_ENUM) &&
|
||||
!(prop->flags & DRM_MODE_PROP_BITMASK)) {
|
||||
weston_log("DRM: expected property %s to be an enum"
|
||||
" or bitmask, but it is not; ignoring\n",
|
||||
prop->name);
|
||||
drmModeFreeProperty(prop);
|
||||
info[j].prop_id = 0;
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue