diff options
author | Simon Ser <contact@emersion.fr> | 2021-10-01 17:22:04 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-10-01 09:26:05 -0600 |
commit | 61b83441a195d9500a3c96bd640a756be16b658e (patch) | |
tree | dbbaf24db13ae7f070a10be1fd41268f93c5b2c4 | |
parent | 62be833aeffaf606087a436863dac5b73b5e25a7 (diff) |
Revert "backend/drm: fail on explicit modifier in drmModeAddFB2"
This reverts commit d6be1d68b7d0542efa4dc2d19d57531484fe330a.
-rw-r--r-- | backend/drm/renderer.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index 01100189..2d81ccd5 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -256,13 +256,6 @@ static uint32_t get_fb_for_bo(struct wlr_drm_backend *drm, wlr_log_errno(WLR_DEBUG, "drmModeAddFB2WithModifiers failed"); } } else { - if (dmabuf->modifier != DRM_FORMAT_MOD_INVALID && - dmabuf->modifier != DRM_FORMAT_MOD_LINEAR) { - wlr_log(WLR_ERROR, "Cannot import DRM framebuffer with explicit " - "modifier 0x%"PRIX64, dmabuf->modifier); - return 0; - } - int ret = drmModeAddFB2(drm->fd, dmabuf->width, dmabuf->height, dmabuf->format, handles, dmabuf->stride, dmabuf->offset, &id, 0); if (ret != 0 && dmabuf->format == DRM_FORMAT_ARGB8888 && |