mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-12-25 21:59:11 +01:00
Stop enabling UNIVERSAL_PLANES
UNIVERSAL_PLANES is implicitly enabled by ATOMIC. No need to require both.
This commit is contained in:
parent
c9e42e3c14
commit
fbc4cf8dba
5 changed files with 1 additions and 18 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue