summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJyri Sarha <jsarha@ti.com>2015-10-01 12:20:47 +0300
committerJyri Sarha <jsarha@ti.com>2015-10-01 12:55:46 +0300
commit7f667ccc41c29c7dbc59a9818a025a130dc2216b (patch)
tree5b25cece2cd4f5264035739ddfd2290015f0ffbe
parent54f21250fdded59e953405291f1778ecc77dd368 (diff)
Add has_has_universal_planes().
-rw-r--r--libkms++/card.cpp3
-rw-r--r--libkms++/card.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/libkms++/card.cpp b/libkms++/card.cpp
index 52a0f7a..7fb910f 100644
--- a/libkms++/card.cpp
+++ b/libkms++/card.cpp
@@ -36,8 +36,7 @@ Card::Card()
m_master = r == 0;
r = drmSetClientCap(m_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1);
- if (r)
- throw invalid_argument("Can't set universal planes");
+ m_has_universal_planes = r == 0;
r = drmSetClientCap(m_fd, DRM_CLIENT_CAP_ATOMIC, 1);
m_has_atomic = r == 0;
diff --git a/libkms++/card.h b/libkms++/card.h
index fbfbe74..a8db76f 100644
--- a/libkms++/card.h
+++ b/libkms++/card.h
@@ -31,6 +31,7 @@ public:
bool master() const { return m_master; }
bool has_atomic() const { return m_has_atomic; }
+ bool has_has_universal_planes() const { return m_has_universal_planes; }
void print_short() const;
@@ -47,5 +48,6 @@ private:
bool m_master;
bool m_has_atomic;
+ bool m_has_universal_planes;
};
}