diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-10-02 12:03:07 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-10-03 12:29:12 +0300 |
commit | b67254a94c0333c6c4409743a54d0544a5763f95 (patch) | |
tree | 5da690caa46549f789c53d596d199ce4ecdf5858 /kms++/src | |
parent | 95de32aa7fbb1a2da547418b296f649ee4be1feb (diff) |
add ExtFramebuffer::prime_fd
Diffstat (limited to 'kms++/src')
-rw-r--r-- | kms++/src/extframebuffer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kms++/src/extframebuffer.cpp b/kms++/src/extframebuffer.cpp index 51f3611..f50c36e 100644 --- a/kms++/src/extframebuffer.cpp +++ b/kms++/src/extframebuffer.cpp @@ -102,4 +102,14 @@ uint8_t* ExtFramebuffer::map(unsigned plane) return p.map; } +int ExtFramebuffer::prime_fd(unsigned plane) +{ + FramebufferPlane& p = m_planes[plane]; + + if (!p.prime_fd) + throw invalid_argument("no primefb for non-dmabuf fb"); + + return p.prime_fd; +} + } |