summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2018-03-19 17:45:18 +0100
committerDerek Foreman <derekf@osg.samsung.com>2018-03-19 12:20:02 -0500
commitdc0e65413ef90a5d20a1fdfa3e1e454491c4900e (patch)
tree3445e0ea20ae613472e122ecb64a7cf100021c13
parent6b2fb180d99bb9d6deaddb1cdf735422d4dd5b93 (diff)
downloadweston-dc0e65413ef90a5d20a1fdfa3e1e454491c4900e.tar.gz
simple-dmabuf-drm: Always define ALIGN
Other backends might want to use it. Signed-off-by: Guido Günther <agx@sigxcpu.org> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
-rw-r--r--clients/simple-dmabuf-drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/simple-dmabuf-drm.c b/clients/simple-dmabuf-drm.c
index 4f26e4a9..efe3b7f5 100644
--- a/clients/simple-dmabuf-drm.c
+++ b/clients/simple-dmabuf-drm.c
@@ -65,6 +65,7 @@ struct buffer;
#define OPT_Y_INVERTED 1 /* contents has y axis inverted */
#define OPT_IMMEDIATE 2 /* create wl_buffer immediately */
+#define ALIGN(v, a) ((v + a - 1) & ~(a - 1))
struct display {
struct wl_display *display;
@@ -215,7 +216,6 @@ intel_device_destroy(struct buffer *my_buf)
#endif /* HAVE_LIBDRM_INTEL */
#ifdef HAVE_LIBDRM_FREEDRENO
-#define ALIGN(v, a) ((v + a - 1) & ~(a - 1))
static int
fd_alloc_bo(struct buffer *buf)