@ -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 } ;