aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-12-19 19:59:08 +0100
committerDominique Martinet <asmadeus@codewreck.org>2017-12-19 20:13:49 +0100
commitbe95147385b961c9734d2c4406df90d93f3d45a9 (patch)
tree7446d390fd8e34bb0e44a4efa6c52d6364fccbd0 /backend/drm
parentdabfe159dea502a51617d90785343cee18cf408b (diff)
drm backend: add wlr_output_is_drm
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 1fceff95..06f012a3 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -658,6 +658,10 @@ static struct wlr_output_impl output_impl = {
.get_gamma_size = wlr_drm_connector_get_gamma_size,
};
+bool wlr_output_is_drm(struct wlr_output *output) {
+ return output->impl == &output_impl;
+}
+
static int retry_pageflip(void *data) {
struct wlr_drm_connector *conn = data;
wlr_log(L_INFO, "%s: Retrying pageflip", conn->output.name);