From 5ef8a18a2927e91db2c63a5e89c028f8aaa71443 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 1 Oct 2022 17:42:57 +0200 Subject: [PATCH] render/allocator/drm_dumb: advertise LINEAR instead of INVALID modifier INVALID means that the modifier is implicit. However dumb buffers are guaranteed to be LINEAR, so let's just advertise this. Fixes cursors with the DRM backend: cursor planes usually only support LINEAR. --- render/allocator/drm_dumb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/allocator/drm_dumb.c b/render/allocator/drm_dumb.c index e2812ecb..f477ce09 100644 --- a/render/allocator/drm_dumb.c +++ b/render/allocator/drm_dumb.c @@ -111,7 +111,7 @@ static struct wlr_drm_dumb_buffer *create_buffer( .width = buffer->width, .height = buffer->height, .format = format->format, - .modifier = DRM_FORMAT_MOD_INVALID, + .modifier = DRM_FORMAT_MOD_LINEAR, .n_planes = 1, .offset[0] = 0, .stride[0] = buffer->stride,