wlroots-hyprland/backend/drm
Simon Ser 04d89a8bc5
backend/drm: fix modifiers for cursor plane buffers
In 93cd3a79b2 ("backend/drm: stop using GBM flags"), we stopped
using the GBM_BO_USE_LINEAR flag in favor of a modifier list set
to { DRM_FORMAT_MOD_LINEAR }. However, the last argument of
drm_plane_init_surface disables modifiers -- so the buffer will just
get allocated with an implicit modifier, without necessarily being
LINEAR.

To fix this, allow modifiers when allocating the cursor buffers.
wlr_drm_plane.formats should already have the necessary LINEAR
restrictions.

Fixes: 93cd3a79b2 ("backend/drm: stop using GBM flags")
2021-01-17 22:25:18 +01:00
..
atomic.c backend/drm: stop using surface size for BO 2021-01-10 11:24:44 +01:00
backend.c backend/drm: implement get_drm_fd 2021-01-16 08:57:42 +01:00
cvt.c backend/drm: add support for custom modes 2019-10-27 10:46:47 -04:00
drm.c backend/drm: fix modifiers for cursor plane buffers 2021-01-17 22:25:18 +01:00
legacy.c backend/drm: stop using surface size for BO 2021-01-10 11:24:44 +01:00
meson.build meson: Various improvements 2019-12-23 07:48:29 -05:00
properties.c backend/drm: add support for the subconnector property 2021-01-17 12:42:25 +01:00
renderer.c backend/drm: use local DRM FD for wlr_rend 2021-01-16 22:52:26 +01:00
util.c drm: add fallback drmModeAddFB for drivers which do not support drmModeAddFB2 2020-12-28 14:15:04 +01:00