diff options
author | Eric Anholt <[email protected]> | 2014-09-15 12:04:32 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-09-15 13:12:27 -0700 |
commit | 50292d76c5aa59be06468e3c2855dd7c1d837ecb (patch) | |
tree | 5d5ece3f7215695a78be70e315031de066887827 /src | |
parent | 418da979053d4fec5b4913e0407c5c48eab601e5 (diff) |
vc4: Reuse the util header instead of defining our own ARRAY_SIZE.
Fixes redefinition warnings if you end up including this header before
util stuff.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qpu_defines.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qpu_defines.h b/src/gallium/drivers/vc4/vc4_qpu_defines.h index f7ad01c6163..0715df25b2d 100644 --- 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, |