summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw/fs-fragcoord.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/tests/graw/fs-fragcoord.c')
-rw-r--r--src/gallium/tests/graw/fs-fragcoord.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/tests/graw/fs-fragcoord.c b/src/gallium/tests/graw/fs-fragcoord.c
index cf7642c7822..9afea0caa0b 100644
--- 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