diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-04-28 10:09:33 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-04-28 20:55:57 +0200 |
commit | 144189674edbf908d72467cd497a0250b3d80b8b (patch) | |
tree | c71455402e227053381aaed7038ba3a477a6079b /backend/drm | |
parent | 6ec652785587b9027512f1a1bc141c5ed27c3ddb (diff) |
backend: introduce backend_get_buffer_caps
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/backend.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/drm/backend.c b/backend/drm/backend.c index 3240b375..6520adc3 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -12,6 +12,7 @@ #include <wlr/util/log.h> #include <xf86drm.h> #include "backend/drm/drm.h" +#include "types/wlr_buffer.h" #include "util/signal.h" struct wlr_drm_backend *get_drm_backend_from_backend( @@ -89,12 +90,17 @@ static int backend_get_drm_fd(struct wlr_backend *backend) { } } +static uint32_t backend_get_buffer_caps(struct wlr_backend *backend) { + return WLR_BUFFER_CAP_DMABUF; +} + static const struct wlr_backend_impl backend_impl = { .start = backend_start, .destroy = backend_destroy, .get_renderer = backend_get_renderer, .get_presentation_clock = backend_get_presentation_clock, .get_drm_fd = backend_get_drm_fd, + .get_buffer_caps = backend_get_buffer_caps, }; bool wlr_backend_is_drm(struct wlr_backend *b) { |