diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-06 17:55:41 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2021-04-29 19:51:57 +0200 |
commit | e543e2620684e41a7743586228c45b563939b689 (patch) | |
tree | 8775e553a9ce48f7c262c861ea452f70d5c8f494 /backend | |
parent | e06c62af77573be1c3aeba0bd9f433fba5ed6a3a (diff) |
backend/drm: take a wlr_drm_connector instead of a wlr_output
No need to take a generic wlr_output, we already know the output
comes from the DRM backend at that point.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index be993996..94f4d3bc 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -427,9 +427,8 @@ static bool drm_connector_test(struct wlr_output *output) { return true; } -static bool drm_connector_commit_buffer(struct wlr_output *output, +static bool drm_connector_commit_buffer(struct wlr_drm_connector *conn, const struct wlr_output_state *state) { - struct wlr_drm_connector *conn = get_drm_connector_from_output(output); struct wlr_drm_backend *drm = conn->backend; struct wlr_drm_crtc *crtc = conn->crtc; @@ -521,7 +520,7 @@ static bool drm_connector_commit(struct wlr_output *output) { } } else if (output->pending.committed & WLR_OUTPUT_STATE_BUFFER) { // TODO: support modesetting with a buffer - if (!drm_connector_commit_buffer(output, &output->pending)) { + if (!drm_connector_commit_buffer(conn, &output->pending)) { return false; } } else if (output->pending.committed & |