mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-05 05:05:57 +01:00
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.
This commit is contained in:
parent
3799649333
commit
5ef8a18a29
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue