Stop enabling UNIVERSAL_PLANES

UNIVERSAL_PLANES is implicitly enabled by ATOMIC. No need to require both.
This commit is contained in:
Simon Ser 2020-12-22 15:06:13 +01:00
parent c9e42e3c14
commit fbc4cf8dba
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
5 changed files with 1 additions and 18 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -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);
/**