summaryrefslogtreecommitdiff
path: root/libkms++
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@iki.fi>2015-10-01 19:42:13 +0300
committerTomi Valkeinen <tomi.valkeinen@iki.fi>2015-10-01 19:42:13 +0300
commitfd0378acf713671aba4d20083e24b42e33df75db (patch)
tree4c8b1b7848b8e98cf1508149ccffe5118379d4a9 /libkms++
parent6b04b303b7cc4a5eba912d4b67349bae7b8e88b6 (diff)
Allow disabling universal planes with LIBKMSXX_DISABLE_UNIVERSAL_PLANES
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);