diff options
Diffstat (limited to 'src/gallium/tests/graw/fs-frontface.c')
-rw-r--r-- | src/gallium/tests/graw/fs-frontface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/tests/graw/fs-frontface.c b/src/gallium/tests/graw/fs-frontface.c index 32a13cb9e2b..3ad89f6b646 100644 --- a/src/gallium/tests/graw/fs-frontface.c +++ b/src/gallium/tests/graw/fs-frontface.c @@ -5,6 +5,8 @@ #include "graw_util.h" +#include "util/macros.h" + static int width = 300; static int height = 300; @@ -65,7 +67,7 @@ static struct vertex vertices[] = }, }; -#define NUM_VERTS (sizeof(vertices) / sizeof(vertices[0])) +#define NUM_VERTS ARRAY_SIZE(vertices) |