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-fragcoord.c
diff --git
a/src/gallium/tests/graw/fs-fragcoord.c
b/src/gallium/tests/graw/fs-fragcoord.c
index cf7642c78224f211f45df63857ac8a0efad289a6..9afea0caa0bf86d3e0d13396bf16ecf615ce185c 100644
(file)
--- a/
src/gallium/tests/graw/fs-fragcoord.c
+++ b/
src/gallium/tests/graw/fs-fragcoord.c
@@
-7,6
+7,8
@@
#include "graw_util.h"
+#include "util/macros.h"
+
static int width = 300;
static int height = 300;
@@
-44,7
+46,7
@@
static struct vertex vertices[] =
}
};
-#define NUM_VERTS
(sizeof(vertices) / sizeof(vertices[0])
)
+#define NUM_VERTS
ARRAY_SIZE(vertices
)
static void