summaryrefslogtreecommitdiff
path: root/libkms++
diff options
context:
space:
mode:
Diffstat (limited to 'libkms++')
-rw-r--r--libkms++/card.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/libkms++/card.cpp b/libkms++/card.cpp
index d652093..5f8dbd1 100644
--- a/libkms++/card.cpp
+++ b/libkms++/card.cpp
@@ -35,8 +35,12 @@ Card::Card()
r = drmSetMaster(fd);
m_master = r == 0;
- r = drmSetClientCap(m_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1);
- m_has_universal_planes = r == 0;
+ if (getenv("LIBKMSXX_DISABLE_UNIVERSAL_PLANES") == 0) {
+ r = drmSetClientCap(m_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1);
+ m_has_universal_planes = r == 0;
+ } else {
+ m_has_universal_planes = false;
+ }
if (getenv("LIBKMSXX_DISABLE_ATOMIC") == 0) {
r = drmSetClientCap(m_fd, DRM_CLIENT_CAP_ATOMIC, 1);