mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
backend/drm: allocate a CRTC in drm_connector_commit_state
drm_connector_set_pending_fb needs a CRTC to import the buffer.
This commit is contained in:
parent
b180d3482f
commit
cb378600e4
1 changed files with 8 additions and 0 deletions
|
|
@ -505,6 +505,14 @@ bool drm_connector_commit_state(struct wlr_drm_connector *conn,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (drm_connector_state_active(conn, &state)) {
|
||||||
|
if (!drm_connector_alloc_crtc(conn)) {
|
||||||
|
wlr_drm_conn_log(conn, WLR_ERROR,
|
||||||
|
"No CRTC available for this connector");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (state.committed & WLR_OUTPUT_STATE_BUFFER) {
|
if (state.committed & WLR_OUTPUT_STATE_BUFFER) {
|
||||||
if (!drm_connector_set_pending_fb(conn, &state)) {
|
if (!drm_connector_set_pending_fb(conn, &state)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue