OSDN Git Service

etnaviv: drm: Use mesa's ARRAY_SIZE
authorGuido Günther <agx@sigxcpu.org>
Fri, 31 May 2019 12:35:06 +0000 (14:35 +0200)
committerGuido Günther <agx@sigxcpu.org>
Wed, 5 Jun 2019 08:58:05 +0000 (08:58 +0000)
Signed-off-by: Guido Günther <guido.gunther@puri.sm>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/etnaviv/drm/etnaviv_priv.h

index d13cfe7..027471b 100644 (file)
@@ -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 */