projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gallium/tests: use ARRAY_SIZE macro
[mesa.git]
/
src
/
gallium
/
tests
/
graw
/
fs-write-z.c
diff --git
a/src/gallium/tests/graw/fs-write-z.c
b/src/gallium/tests/graw/fs-write-z.c
index 12267ed820d83fbed586c3bec47c43b9d9e6c90c..196c67bc368852df756067c833336eb865c2c703 100644
(file)
--- a/
src/gallium/tests/graw/fs-write-z.c
+++ b/
src/gallium/tests/graw/fs-write-z.c
@@
-7,6
+7,8
@@
#include "graw_util.h"
+#include "util/macros.h"
+
static int width = 300;
static int height = 300;
@@
-69,7
+71,7
@@
static struct vertex vertices[] =
},
};
-#define NUM_VERTS
(sizeof(vertices) / sizeof(vertices[0])
)
+#define NUM_VERTS
ARRAY_SIZE(vertices
)