diff options
author | Simon Ser <contact@emersion.fr> | 2024-02-26 17:29:18 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2024-02-26 17:30:59 +0100 |
commit | 0e839ab1c28f24e68b0266f2e57e530ac8830fc1 (patch) | |
tree | c210f921a27712bad41c362f8364b613c02e9444 /backend | |
parent | e8b7fe8f39e049564807ac528c3bdd011355883c (diff) |
backend/drm: fix primary FB check
When turning off a CRTC, we don't need a buffer.
It doesn't matter whether this is a modeset or not: we always need
a buffer even for regular page-flips as long as a connector is
active.
Fixes: 374daeb25603 ("backend/drm: Ensure a primary fb is available when configuring an output")
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 64d3e45c..3b0e6be1 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -682,7 +682,7 @@ static bool drm_connector_test(struct wlr_output *output, struct wlr_drm_connector_state pending = {0}; drm_connector_state_init(&pending, conn, state); - if (state->allow_reconfiguration && !pending.primary_fb) { + if (pending.active && !pending.primary_fb) { wlr_drm_conn_log(conn, WLR_DEBUG, "No primary frame buffer available for this connector"); goto out; |