summaryrefslogtreecommitdiff
path: root/kms++/src
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2019-01-11 11:51:11 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2019-01-14 09:27:28 +0200
commit6126525e3921d2ccc54ca393e6a24d4bd0f08429 (patch)
tree6984774e95969fb4219a02db68efe9bb8c9773a2 /kms++/src
parent588570115ff515fb2152e5ae1cd34fedbf5937c2 (diff)
card: don't throw if no dumb buffers
Allow opening DRM cards without dumb buffers. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++/src')
-rw-r--r--kms++/src/card.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/kms++/src/card.cpp b/kms++/src/card.cpp
index 3b3e2c1..4632f22 100644
--- a/kms++/src/card.cpp
+++ b/kms++/src/card.cpp
@@ -143,8 +143,7 @@ void Card::setup()
uint64_t has_dumb;
r = drmGetCap(m_fd, DRM_CAP_DUMB_BUFFER, &has_dumb);
- if (r || !has_dumb)
- throw invalid_argument("Dumb buffers not available");
+ m_has_dumb = r == 0 && has_dumb;
auto res = drmModeGetResources(m_fd);
if (res) {