diff options
author | Simon Ser <contact@emersion.fr> | 2022-10-01 17:42:57 +0200 |
---|---|---|
committer | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-10-01 19:45:29 +0000 |
commit | 5ef8a18a2927e91db2c63a5e89c028f8aaa71443 (patch) | |
tree | 4c824d1993e68a30ce35bcb6e5fb3e2361cf7163 /render/allocator | |
parent | 37996493333134692333c640ede7f9feb85052bd (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/allocator')
-rw-r--r-- | render/allocator/drm_dumb.c | 2 |
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, |