diff options
author | nyorain <nyorain@gmail.com> | 2018-10-12 22:04:12 +0200 |
---|---|---|
committer | nyorain <nyorain@gmail.com> | 2018-10-12 23:07:45 +0200 |
commit | affbfb6a28cfb2a5385e8a2e0417137599f06fa0 (patch) | |
tree | 778bedc64df89c2eb71b85a470a00e78c09f590a /include | |
parent | 4897267bd6b16ae9caeae5d4ac5d661e60230840 (diff) |
Support older wlr_linux_dmabuf_v1 clients
If a client uses an older version of the dmabuf protocol, use the
`formats` event instead of `modifiers` (since that didn't exist in older
versions).
With a bit of necessary guessing, support dmabuf importing even when
EGL_EXT_image_dma_buf_import_modifiers isn't present instead of
failing up front.
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/render/dmabuf.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/wlr/render/dmabuf.h b/include/wlr/render/dmabuf.h index 33c3a129..32cfe874 100644 --- a/include/wlr/render/dmabuf.h +++ b/include/wlr/render/dmabuf.h @@ -16,6 +16,10 @@ #define DRM_FORMAT_MOD_INVALID ((1ULL<<56) - 1) #endif +#ifndef DRM_FORMAT_MOD_LINEAR +#define DRM_FORMAT_MOD_LINEAR 0 +#endif + #define WLR_DMABUF_MAX_PLANES 4 enum wlr_dmabuf_attributes_flags { |