diff options
author | Scott Anderson <ascent12@hotmail.com> | 2017-09-30 19:11:41 +1300 |
---|---|---|
committer | Scott Anderson <ascent12@hotmail.com> | 2017-09-30 19:11:41 +1300 |
commit | d0708b1a3a3fb9fd3a073d6c5406b26e8bf617e9 (patch) | |
tree | be19c29026e04846db7521183f073328e319c558 /backend/drm | |
parent | 610b0493ac4a3bbde44378adf855c7202b1e59c4 (diff) |
Split DRM internal interface to its own header
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/drm.c | 4 | ||||
-rw-r--r-- | backend/drm/iface_atomic.c | 1 | ||||
-rw-r--r-- | backend/drm/iface_legacy.c | 1 |
3 files changed, 3 insertions, 3 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index cba41023..40a6f37b 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -21,12 +21,10 @@ #include <wlr/render/gles2.h> #include <wlr/render.h> #include "backend/drm/drm.h" +#include "backend/drm/iface.h" #include "backend/drm/util.h" bool wlr_drm_check_features(struct wlr_drm_backend *backend) { - extern const struct wlr_drm_interface iface_legacy; - extern const struct wlr_drm_interface iface_atomic; - if (drmSetClientCap(backend->fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1)) { wlr_log(L_ERROR, "DRM universal planes unsupported"); return false; diff --git a/backend/drm/iface_atomic.c b/backend/drm/iface_atomic.c index 5bb2da9b..75a3c33a 100644 --- a/backend/drm/iface_atomic.c +++ b/backend/drm/iface_atomic.c @@ -3,6 +3,7 @@ #include <xf86drmMode.h> #include <wlr/util/log.h> #include "backend/drm/drm.h" +#include "backend/drm/iface.h" #include "backend/drm/util.h" struct atomic { diff --git a/backend/drm/iface_legacy.c b/backend/drm/iface_legacy.c index 856e9060..110b38b5 100644 --- a/backend/drm/iface_legacy.c +++ b/backend/drm/iface_legacy.c @@ -3,6 +3,7 @@ #include <xf86drmMode.h> #include <wlr/util/log.h> #include "backend/drm/drm.h" +#include "backend/drm/iface.h" #include "backend/drm/util.h" static bool legacy_crtc_pageflip(struct wlr_drm_backend *backend, |