i965/drm: Use Mesa's macros.h instead of duplicating them.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 22 Mar 2017 05:42:43 +0000 (22:42 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 10 Apr 2017 21:31:24 +0000 (14:31 -0700)
commit68cb0c6d92b82609a4bee97dde3af9db26f8fdf9
tree52447cce56ea58014ad8cc03b1d03369df141065
parentc5cdb0f40574344f1b606fb6978b3714ac82d52a
i965/drm: Use Mesa's macros.h instead of duplicating them.

Replace the duplicated macros imported from libdrm:

   ARRAY_SIZE, MAX2, ALIGN, STATIC_ASSERT

and remove unused ROUND_UP_TO and ROUND_UP_TO_MB.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/intel_bufmgr_gem.c
src/mesa/drivers/dri/i965/intel_bufmgr_priv.h
src/mesa/drivers/dri/i965/libdrm_macros.h