compositor-drm: Allow disabling universal planes

Add a test environment variable to allow disabling universal planes.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
dev
Daniel Stone 7 years ago
parent b138d7afb3
commit be1090b523
  1. 6
      libweston/compositor-drm.c

@ -2105,8 +2105,10 @@ init_kms_caps(struct drm_backend *b)
else else
b->cursor_height = 64; b->cursor_height = 64;
ret = drmSetClientCap(b->drm.fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1); if (!getenv("WESTON_DISABLE_UNIVERSAL_PLANES")) {
b->universal_planes = (ret == 0); ret = drmSetClientCap(b->drm.fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1);
b->universal_planes = (ret == 0);
}
weston_log("DRM: %s universal planes\n", weston_log("DRM: %s universal planes\n",
b->universal_planes ? "supports" : "does not support"); b->universal_planes ? "supports" : "does not support");

Loading…
Cancel
Save