aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2024-02-25 05:54:08 -0500
committerAlexander Orzechowski <alex@ozal.ski>2024-02-25 05:54:08 -0500
commit374daeb2560350cf5075837077a3564dfcf316b6 (patch)
tree66e53173079b8273cbe26465be571bd9bebdf254
parentf9a371717c9331d21af092cf2d689a3f496813ec (diff)
backend/drm: Ensure a primary fb is available when configuring an output
-rw-r--r--backend/drm/drm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 20e56318..564a60e2 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -684,6 +684,12 @@ 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) {
+ wlr_drm_conn_log(conn, WLR_DEBUG,
+ "No primary frame buffer available for this connector");
+ goto out;
+ }
+
if ((state->committed & WLR_OUTPUT_STATE_ADAPTIVE_SYNC_ENABLED) &&
state->adaptive_sync_enabled &&
!drm_connector_supports_vrr(conn)) {