diff options
author | Simon Ser <contact@emersion.fr> | 2021-11-16 22:51:06 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-11-17 16:12:59 +0000 |
commit | a04cfca4da42d1cc01047c1cd9e60ef504beae98 (patch) | |
tree | b388fc9f851a7784881cb70509b033bb680f3db8 /backend/drm | |
parent | 9a4e1095cad154b7f8ce41cedbfb1e9a7e137d66 (diff) |
Remove support for DMA-BUF flags
They are never used in practice, which makes all of our flag
handling effectively dead code. Also, APIs such as KMS don't
provide a good way to deal with the flags. Let's just fail the
DMA-BUF import when clients provide flags.
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/renderer.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index 40e068cd..6c26558f 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -282,12 +282,6 @@ static struct wlr_drm_fb *drm_fb_create(struct wlr_drm_backend *drm, goto error_get_dmabuf; } - if (attribs.flags != 0) { - wlr_log(WLR_DEBUG, "Buffer with DMA-BUF flags 0x%"PRIX32" cannot be " - "scanned out", attribs.flags); - goto error_get_dmabuf; - } - if (formats && !wlr_drm_format_set_has(formats, attribs.format, attribs.modifier)) { // The format isn't supported by the plane. Try stripping the alpha |