projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
418da97
)
vc4: Reuse the util header instead of defining our own ARRAY_SIZE.
author
Eric Anholt
<eric@anholt.net>
Mon, 15 Sep 2014 19:04:32 +0000
(12:04 -0700)
committer
Eric Anholt
<eric@anholt.net>
Mon, 15 Sep 2014 20:12:27 +0000
(13:12 -0700)
Fixes redefinition warnings if you end up including this header before
util stuff.
src/gallium/drivers/vc4/vc4_qpu_defines.h
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_qpu_defines.h
b/src/gallium/drivers/vc4/vc4_qpu_defines.h
index f7ad01c6163f078f9375b54c7fcd10dd02941f83..0715df25b2d2e42039c5424b4d7bfb6ee212e6ea 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_qpu_defines.h
+++ b/
src/gallium/drivers/vc4/vc4_qpu_defines.h
@@
-25,8
+25,7
@@
#define VC4_QPU_DEFINES_H
#include <assert.h>
-
-#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+#include <util/macros.h>
enum qpu_op_add {
QPU_A_NOP,