diff options
author | Tadeo Kondrak <me@tadeo.ca> | 2021-04-19 12:52:31 -0600 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-04-20 20:27:25 +0200 |
commit | 014c59aa401cfb5566f840a97308c619edaec840 (patch) | |
tree | 71b63629e75c223081a30fcb3cccdb5e7caeadea /include/backend | |
parent | 572b5910bbac03b7c0cc20288cadf8f719a9903a (diff) |
backend/x11: add support for shm buffers
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/x11.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/backend/x11.h b/include/backend/x11.h index 89760069..b977955e 100644 --- a/include/backend/x11.h +++ b/include/backend/x11.h @@ -75,6 +75,9 @@ struct wlr_x11_backend { xcb_colormap_t colormap; xcb_cursor_t transparent_cursor; xcb_render_pictformat_t argb32; + + bool have_shm; + bool have_dri3; uint32_t dri3_major_version, dri3_minor_version; size_t requested_outputs; @@ -87,6 +90,7 @@ struct wlr_x11_backend { int drm_fd; struct wlr_renderer *renderer; struct wlr_drm_format_set dri3_formats; + struct wlr_drm_format_set shm_formats; const struct wlr_x11_format *x11_format; struct wlr_drm_format *drm_format; struct wlr_allocator *allocator; |