diff options
author | Simon Ser <contact@emersion.fr> | 2019-05-26 17:38:35 +0300 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-07 09:06:11 -0400 |
commit | e8057bb60c4666d73ec776fa8f37ef4858c18fbe (patch) | |
tree | 9991222b4ad312ccaaf0a702788d188869ebe871 /include/backend | |
parent | e07ffaa2493eb205d4ff3b3f042c43420e2012fe (diff) |
backend/drm: fallback to drmModeAddFB2
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/drm/drm.h | 1 | ||||
-rw-r--r-- | include/backend/drm/util.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index 3821c358..99120852 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -72,6 +72,7 @@ struct wlr_drm_backend { struct wlr_drm_backend *parent; const struct wlr_drm_interface *iface; clockid_t clock; + bool addfb2_modifiers; int fd; diff --git a/include/backend/drm/util.h b/include/backend/drm/util.h index 2491e703..2d9d11f4 100644 --- a/include/backend/drm/util.h +++ b/include/backend/drm/util.h @@ -14,7 +14,8 @@ void parse_edid(struct wlr_output *restrict output, size_t len, // Returns the string representation of a DRM output type const char *conn_get_name(uint32_t type_id); // Returns the DRM framebuffer id for a gbm_bo -uint32_t get_fb_for_bo(struct gbm_bo *bo, uint32_t drm_format); +uint32_t get_fb_for_bo(struct gbm_bo *bo, uint32_t drm_format, + bool with_modifiers); // Part of match_obj enum { |