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:
Derek Foreman 2023-01-19 16:07:59 -06:00
parent e3ec879d11
commit 397ed8cec5
1 changed files with 5 additions and 3 deletions

View File

@ -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;