From 014c59aa401cfb5566f840a97308c619edaec840 Mon Sep 17 00:00:00 2001 From: Tadeo Kondrak Date: Mon, 19 Apr 2021 12:52:31 -0600 Subject: backend/x11: add support for shm buffers --- include/backend/x11.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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; -- cgit v1.2.3