aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-11-16 22:51:06 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-11-17 16:12:59 +0000
commita04cfca4da42d1cc01047c1cd9e60ef504beae98 (patch)
treeb388fc9f851a7784881cb70509b033bb680f3db8 /include/wlr
parent9a4e1095cad154b7f8ce41cedbfb1e9a7e137d66 (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 'include/wlr')
-rw-r--r--include/wlr/render/dmabuf.h7
-rw-r--r--include/wlr/render/gles2.h1
2 files changed, 0 insertions, 8 deletions
diff --git a/include/wlr/render/dmabuf.h b/include/wlr/render/dmabuf.h
index 75892d30..76aad629 100644
--- a/include/wlr/render/dmabuf.h
+++ b/include/wlr/render/dmabuf.h
@@ -14,16 +14,9 @@
#define WLR_DMABUF_MAX_PLANES 4
-enum wlr_dmabuf_attributes_flags {
- WLR_DMABUF_ATTRIBUTES_FLAGS_Y_INVERT = 1 << 0,
- WLR_DMABUF_ATTRIBUTES_FLAGS_INTERLACED = 1 << 1,
- WLR_DMABUF_ATTRIBUTES_FLAGS_BOTTOM_FIRST = 1 << 2,
-};
-
struct wlr_dmabuf_attributes {
int32_t width, height;
uint32_t format;
- uint32_t flags; // enum wlr_dmabuf_attributes_flags
uint64_t modifier;
int n_planes;
diff --git a/include/wlr/render/gles2.h b/include/wlr/render/gles2.h
index dabe49dd..e6844ce9 100644
--- a/include/wlr/render/gles2.h
+++ b/include/wlr/render/gles2.h
@@ -30,7 +30,6 @@ struct wlr_gles2_texture_attribs {
GLenum target; /* either GL_TEXTURE_2D or GL_TEXTURE_EXTERNAL_OES */
GLuint tex;
- bool inverted_y;
bool has_alpha;
};