projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e87d128
)
etnaviv: drm: Use mesa's ARRAY_SIZE
author
Guido Günther
<agx@sigxcpu.org>
Fri, 31 May 2019 12:35:06 +0000
(14:35 +0200)
committer
Guido 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
patch
|
blob
|
history
diff --git
a/src/etnaviv/drm/etnaviv_priv.h
b/src/etnaviv/drm/etnaviv_priv.h
index d13cfe73686aa31d6b23d18f229f2159e8c8f5db..027471bfd3df31b700a097350ae059df4cb94cc5 100644
(file)
--- 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 */