Module: Mesa Branch: master Commit: 92fc14321fd87483f787e0c4854cd6f9ea0625ed URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=92fc14321fd87483f787e0c4854cd6f9ea0625ed
Author: Guido Günther <[email protected]> Date: Fri May 31 14:35:06 2019 +0200 etnaviv: drm: Use mesa's ARRAY_SIZE Signed-off-by: Guido Günther <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]> --- src/etnaviv/drm/etnaviv_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etnaviv/drm/etnaviv_priv.h b/src/etnaviv/drm/etnaviv_priv.h index d13cfe73686..027471bfd3d 100644 --- a/src/etnaviv/drm/etnaviv_priv.h +++ b/src/etnaviv/drm/etnaviv_priv.h @@ -41,6 +41,7 @@ #include <xf86drm.h> #include "util/list.h" +#include "util/macros.h" #include "util/u_atomic.h" #include "etnaviv_drmif.h" @@ -176,7 +177,6 @@ struct etna_perfmon_signal }; #define ALIGN(v,a) (((v) + (a) - 1) & ~((a) - 1)) -#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) #define enable_debug 1 /* TODO make dynamic */ _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
