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>
This commit is contained in:
Guido Günther 2018-03-19 17:45:18 +01:00 committed by Derek Foreman
parent 6b2fb180d9
commit dc0e65413e

View File

@ -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)