aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-10-01 17:42:57 +0200
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-10-01 19:45:29 +0000
commit5ef8a18a2927e91db2c63a5e89c028f8aaa71443 (patch)
tree4c824d1993e68a30ce35bcb6e5fb3e2361cf7163 /render
parent37996493333134692333c640ede7f9feb85052bd (diff)
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.
Diffstat (limited to 'render')
-rw-r--r--render/allocator/drm_dumb.c2
1 files changed, 1 insertions, 1 deletions
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,