OSDN Git Service
(root)
/
android-x86
/
external-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
d13cfe7
..
027471b
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 */