From 47b390fe45e5e6f982c60b58985892438959cd8e Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Tue, 17 May 2016 09:25:44 -0400 Subject: Treewide: Remove Elements() macro Signed-off-by: Jan Vesely Reviewed-by: Brian Paul --- src/gallium/tests/trivial/compute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gallium/tests/trivial') diff --git a/src/gallium/tests/trivial/compute.c b/src/gallium/tests/trivial/compute.c index 5d012ac3838..443451e13d2 100644 --- a/src/gallium/tests/trivial/compute.c +++ b/src/gallium/tests/trivial/compute.c @@ -155,7 +155,7 @@ static void init_prog(struct context *ctx, unsigned local_sz, char *psrc = preprocess_prog(ctx, src, defs); int ret; - ret = tgsi_text_translate(psrc, prog, Elements(prog)); + ret = tgsi_text_translate(psrc, prog, ARRAY_SIZE(prog)); assert(ret); free(psrc); @@ -1125,7 +1125,7 @@ static void test_surface_ld(struct context *ctx) init_prog(ctx, 0, 0, 0, src, NULL); - for (i = 0; i < Elements(surface_fmts); i++) { + for (i = 0; i < ARRAY_SIZE(surface_fmts); i++) { bool is_int = util_format_is_pure_integer(surface_fmts[i]); printf(" - %s\n", util_format_name(surface_fmts[i])); @@ -1243,7 +1243,7 @@ static void test_surface_st(struct context *ctx) init_prog(ctx, 0, 0, 0, src, NULL); - for (i = 0; i < Elements(surface_fmts); i++) { + for (i = 0; i < ARRAY_SIZE(surface_fmts); i++) { bool is_signed = (util_format_description(surface_fmts[i]) ->channel[0].type == UTIL_FORMAT_TYPE_SIGNED); bool is_int = util_format_is_pure_integer(surface_fmts[i]); -- cgit v1.2.3