[PATCH weston v4 1/4] simple-dmabuf-drm: Always define ALIGN

Derek Foreman derekf at osg.samsung.com
Mon Mar 19 17:30:32 UTC 2018


On 2018-03-19 11:45 AM, Guido Günther wrote:
> Other backends might want to use it.
> 
> Signed-off-by: Guido Günther <agx at sigxcpu.org>

Reviewed-by: Derek Foreman <derekf at osg.samsung.com>
(and pushed)

Thanks,
Derek

> ---
>   clients/simple-dmabuf-drm.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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)
> 



More information about the wayland-devel mailing list