aboutsummaryrefslogtreecommitdiff
path: root/include/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-10-22 18:41:47 +0200
committerScott Anderson <ascent12@hotmail.com>2019-10-23 09:36:50 +0000
commite97c2c3639119831ced4f6b9f704b096c2075973 (patch)
tree049f7dcb3f5da923829892850fd7a6444f05c20c /include/backend/drm
parent51416738eae1ab5c16cbaa97a4293dbc8c809b79 (diff)
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
Diffstat (limited to 'include/backend/drm')
-rw-r--r--include/backend/drm/renderer.h2
1 files changed, 1 insertions, 1 deletions
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);