From fbc4cf8dba64d6652bdff936c6ea1b496a16e268 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 22 Dec 2020 15:06:13 +0100 Subject: [PATCH] Stop enabling UNIVERSAL_PLANES UNIVERSAL_PLANES is implicitly enabled by ATOMIC. No need to require both. --- example/compositor.c | 4 ---- example/dynamic.c | 4 ---- example/multi-output.c | 4 ---- example/simple.c | 4 ---- include/libliftoff.h | 3 +-- 5 files changed, 1 insertion(+), 18 deletions(-) diff --git a/example/compositor.c b/example/compositor.c index 63e44cc..88d5a81 100644 --- a/example/compositor.c +++ b/example/compositor.c @@ -142,10 +142,6 @@ int main(int argc, char *argv[]) return 1; } - if (drmSetClientCap(drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1) < 0) { - perror("drmSetClientCap(UNIVERSAL_PLANES)"); - return 1; - } if (drmSetClientCap(drm_fd, DRM_CLIENT_CAP_ATOMIC, 1) < 0) { perror("drmSetClientCap(ATOMIC)"); return 1; diff --git a/example/dynamic.c b/example/dynamic.c index 0ba9ff2..4533b57 100644 --- a/example/dynamic.c +++ b/example/dynamic.c @@ -151,10 +151,6 @@ int main(int argc, char *argv[]) return 1; } - if (drmSetClientCap(drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1) < 0) { - perror("drmSetClientCap(UNIVERSAL_PLANES)"); - return 1; - } if (drmSetClientCap(drm_fd, DRM_CLIENT_CAP_ATOMIC, 1) < 0) { perror("drmSetClientCap(ATOMIC)"); return 1; diff --git a/example/multi-output.c b/example/multi-output.c index 69d0e0b..ad757e9 100644 --- a/example/multi-output.c +++ b/example/multi-output.c @@ -86,10 +86,6 @@ int main(int argc, char *argv[]) return 1; } - if (drmSetClientCap(drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1) < 0) { - perror("drmSetClientCap(UNIVERSAL_PLANES)"); - return 1; - } if (drmSetClientCap(drm_fd, DRM_CLIENT_CAP_ATOMIC, 1) < 0) { perror("drmSetClientCap(ATOMIC)"); return 1; diff --git a/example/simple.c b/example/simple.c index 99bb8d5..189496f 100644 --- a/example/simple.c +++ b/example/simple.c @@ -83,10 +83,6 @@ int main(int argc, char *argv[]) return 1; } - if (drmSetClientCap(drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1) < 0) { - perror("drmSetClientCap(UNIVERSAL_PLANES)"); - return 1; - } if (drmSetClientCap(drm_fd, DRM_CLIENT_CAP_ATOMIC, 1) < 0) { perror("drmSetClientCap(ATOMIC)"); return 1; diff --git a/include/libliftoff.h b/include/libliftoff.h index 5d5c79f..1d525f9 100644 --- a/include/libliftoff.h +++ b/include/libliftoff.h @@ -14,8 +14,7 @@ struct liftoff_layer; /** * Initialize libliftoff for a DRM node. * - * The node is expected to have DRM_CLIENT_CAP_UNIVERSAL_PLANES and - * DRM_CLIENT_CAP_ATOMIC enabled. + * The node is expected to have DRM_CLIENT_CAP_ATOMIC enabled. */ struct liftoff_device *liftoff_device_create(int drm_fd); /**