aboutsummaryrefslogtreecommitdiffstats
path: root/src/etnaviv/drm
diff options
context:
space:
mode:
authorGuido Günther <[email protected]>2019-05-31 14:35:06 +0200
committerGuido Günther <[email protected]>2019-06-05 08:58:05 +0000
commit92fc14321fd87483f787e0c4854cd6f9ea0625ed (patch)
tree4e23815e748c25a5eaf546024cf37618ef6d1914 /src/etnaviv/drm
parente87d128b52b1ee9e5ac16481ba1736a30a4119ef (diff)
etnaviv: drm: Use mesa's ARRAY_SIZE
Signed-off-by: Guido Günther <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/etnaviv/drm')
-rw-r--r--src/etnaviv/drm/etnaviv_priv.h2
1 files changed, 1 insertions, 1 deletions
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 */