From 37996493333134692333c640ede7f9feb85052bd Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 1 Oct 2022 17:02:43 +0200 Subject: [PATCH] render/pixman: advertise support for linear format modifier When running with the DRM backend, the Pixman renderer needs to render the cursor buffer. However, DRM drivers only support linear buffers for these in general, they don't support implicit modifiers (aka. INVALID). Advertise support for LINEAR in the Pixman renderer to fix this. --- render/pixman/renderer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/render/pixman/renderer.c b/render/pixman/renderer.c index 2853b7047..d4833f296 100644 --- a/render/pixman/renderer.c +++ b/render/pixman/renderer.c @@ -522,7 +522,9 @@ struct wlr_renderer *wlr_pixman_renderer_create(void) { for (size_t i = 0; i < len; ++i) { wlr_drm_format_set_add(&renderer->drm_formats, formats[i], - DRM_FORMAT_MOD_INVALID); + DRM_FORMAT_MOD_INVALID); + wlr_drm_format_set_add(&renderer->drm_formats, formats[i], + DRM_FORMAT_MOD_LINEAR); } return &renderer->wlr_renderer;