backend/x11: add support for shm buffers

This commit is contained in:
Tadeo Kondrak 2021-04-19 12:52:31 -06:00 committed by Simon Ser
parent 572b5910bb
commit 014c59aa40
5 changed files with 182 additions and 74 deletions

View file

@ -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;