wlroots-hyprland/backend/drm
Simon Ser 0411dc0663 Revert "backend/drm: fail instead of stripping a modifier"
This reverts commit f9f90b4173.

gbm_bo_get_modifier may return a modifier in these cases:

- The kernel doesn't support modifiers but Mesa does
- WLR_DRM_NO_MODIFIERS=1 is set

However, in both of these cases, the gbm_bo has been allocated
without modifiers.

There is already a check in drm_fb_create for modifiers:
wlr_drm_format_set_has will make sure buffers with an explicit
modifier will be rejected if the DRM backend doesn't support them.
So no need for an additional check in get_fb_for_bo.

Closes: https://github.com/swaywm/wlroots/issues/2896
2021-04-27 15:38:10 +02:00
..
atomic.c backend/drm: downgrade test-only commit failure log level 2021-04-06 20:35:15 +02:00
backend.c backend/drm: destroy backend on udev remove event 2021-04-27 09:11:44 +02:00
cvt.c backend/drm: add support for custom modes 2019-10-27 10:46:47 -04:00
drm.c backend/drm: carry on when disabling a CRTC fails 2021-04-27 09:11:44 +02: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 render: rename get_dmabuf_render_formats into get_render_formats 2021-04-15 17:10:06 +02:00
util.c Revert "backend/drm: fail instead of stripping a modifier" 2021-04-27 15:38:10 +02:00