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