mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
backend/drm: Remove dead code
We can never hit the case where we try to light up an output without a buffer. output_ensure_buffer() will catch this for now, and when that's removed, output_basic_test() will catch this case.
This commit is contained in:
parent
672ff1e14e
commit
f9a371717c
1 changed files with 6 additions and 14 deletions
|
@ -672,21 +672,13 @@ static bool drm_connector_test(struct wlr_output *output,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((state->committed & WLR_OUTPUT_STATE_ENABLED) ? state->enabled : output->enabled) {
|
if (((state->committed & WLR_OUTPUT_STATE_ENABLED)
|
||||||
if ((state->committed &
|
? state->enabled : output->enabled) &&
|
||||||
(WLR_OUTPUT_STATE_ENABLED | WLR_OUTPUT_STATE_MODE)) &&
|
!drm_connector_alloc_crtc(conn)) {
|
||||||
!(state->committed & WLR_OUTPUT_STATE_BUFFER)) {
|
|
||||||
wlr_drm_conn_log(conn, WLR_DEBUG,
|
|
||||||
"Can't enable an output without a buffer");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!drm_connector_alloc_crtc(conn)) {
|
|
||||||
wlr_drm_conn_log(conn, WLR_DEBUG,
|
wlr_drm_conn_log(conn, WLR_DEBUG,
|
||||||
"No CRTC available for this connector");
|
"No CRTC available for this connector");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
struct wlr_drm_connector_state pending = {0};
|
struct wlr_drm_connector_state pending = {0};
|
||||||
|
|
Loading…
Reference in a new issue