From e97c2c3639119831ced4f6b9f704b096c2075973 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 22 Oct 2019 18:41:47 +0200 Subject: backend/drm: retry without modifiers for the primary plane On some Intel cards using modifiers can fill the FIFO and prevent hotplugged outputs from being properly enabled. Add a fallback without modifiers. Fixes: 2bdd1d0896cc ("backend/drm: use modifiers for our GBM buffers") References: https://github.com/swaywm/wlroots/issues/1840 Closes: https://github.com/swaywm/wlroots/issues/1852 --- include/backend/drm/renderer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/backend/drm') diff --git a/include/backend/drm/renderer.h b/include/backend/drm/renderer.h index 1b1f1243..567cf95e 100644 --- a/include/backend/drm/renderer.h +++ b/include/backend/drm/renderer.h @@ -44,7 +44,7 @@ bool init_drm_surface(struct wlr_drm_surface *surf, bool init_drm_plane_surfaces(struct wlr_drm_plane *plane, struct wlr_drm_backend *drm, int32_t width, uint32_t height, - uint32_t format); + uint32_t format, bool with_modifiers); void finish_drm_surface(struct wlr_drm_surface *surf); bool make_drm_surface_current(struct wlr_drm_surface *surf, int *buffer_age); -- cgit v1.2.3