diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-01-29 13:38:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-29 13:38:51 -0500 |
commit | c6b4153748f8e53363cda87edfea43a432f4a255 (patch) | |
tree | f3d655ef0f0a18959f2f567d579f10089f7adf4d /render/gles2/texture.c | |
parent | feb1b9b1cbcf675a4bb449ce30c50522cb8b09f5 (diff) | |
parent | 75371d2c8845c09e77b97dc91bbd536ccc0eb3ab (diff) |
Merge pull request #1510 from emersion/libdrm-version
Require libdrm >= 2.4.95
Diffstat (limited to 'render/gles2/texture.c')
-rw-r--r-- | render/gles2/texture.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/render/gles2/texture.c b/render/gles2/texture.c index d035841e..5f982e2c 100644 --- a/render/gles2/texture.c +++ b/render/gles2/texture.c @@ -1,13 +1,14 @@ #include <assert.h> +#include <drm_fourcc.h> #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #include <stdint.h> #include <stdlib.h> #include <wayland-server-protocol.h> #include <wayland-util.h> -#include <wlr/render/wlr_texture.h> #include <wlr/render/egl.h> #include <wlr/render/interface.h> +#include <wlr/render/wlr_texture.h> #include <wlr/types/wlr_matrix.h> #include <wlr/util/log.h> #include "glapi.h" @@ -239,10 +240,6 @@ struct wlr_texture *wlr_gles2_texture_from_wl_drm(struct wlr_egl *egl, return &texture->wlr_texture; } -#ifndef DRM_FORMAT_BIG_ENDIAN -#define DRM_FORMAT_BIG_ENDIAN 0x80000000 -#endif - struct wlr_texture *wlr_gles2_texture_from_dmabuf(struct wlr_egl *egl, struct wlr_dmabuf_attributes *attribs) { if (!wlr_egl_is_current(egl)) { |