Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
#include "graw_util.h"
+#include "util/macros.h"
+
static int width = 300;
static int height = 300;
}
};
-#define NUM_VERTS (sizeof(vertices) / sizeof(vertices[0]))
+#define NUM_VERTS ARRAY_SIZE(vertices)
static void
#include "graw_util.h"
+#include "util/macros.h"
+
static int width = 300;
static int height = 300;
},
};
-#define NUM_VERTS (sizeof(vertices) / sizeof(vertices[0]))
+#define NUM_VERTS ARRAY_SIZE(vertices)
#include "graw_util.h"
+#include "util/macros.h"
+
static int width = 300;
static int height = 300;
},
};
-#define NUM_VERTS (sizeof(vertices) / sizeof(vertices[0]))
+#define NUM_VERTS ARRAY_SIZE(vertices)