diff options
-rw-r--r-- | libkms++/card.cpp | 3 | ||||
-rw-r--r-- | libkms++/card.h | 2 |
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; }; } |