aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-07-08 15:56:01 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-07-09 15:31:19 -0400
commit017555651b01a2e4fbdda9d59b29c847094d57b7 (patch)
treebf823ca3013b373ad87f7f41608a474ada174e2e /include/backend
parenta362d21d6b2191ce0101657629ae01841189cae5 (diff)
backend/drm: add test_only arg to wlr_drm_interface.crtc_commit
Right now callers of drm_crtc_commit need to check whether the interface is legacy or atomic before passing the TEST_ONLY flag. Additionally, the fallbacks for legacy are in-place in the common code. Add a test_only arg to the crtc_commit hook. This way, there's no risk to pass atomic-only flags to the legacy function (add an assert to ensure this) and all of the legacy-specific logic can be put back into legacy.c (done in next commit).
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/drm/iface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/backend/drm/iface.h b/include/backend/drm/iface.h
index 98bae974..f7107973 100644
--- a/include/backend/drm/iface.h
+++ b/include/backend/drm/iface.h
@@ -16,7 +16,7 @@ struct wlr_drm_interface {
// Commit al pending changes on a CRTC.
bool (*crtc_commit)(struct wlr_drm_backend *drm,
struct wlr_drm_connector *conn, const struct wlr_output_state *state,
- uint32_t flags);
+ uint32_t flags, bool test_only);
};
extern const struct wlr_drm_interface atomic_iface;