summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/trivial/compute.c
diff options
context:
space:
mode:
authorJan Vesely <[email protected]>2016-05-17 09:25:44 -0400
committerJan Vesely <[email protected]>2016-05-17 15:28:04 -0400
commit47b390fe45e5e6f982c60b58985892438959cd8e (patch)
tree61a26199f85287a7e918c6c52db243280b6a3cba /src/gallium/tests/trivial/compute.c
parent322cd2457ccf66a0a88d92f0b0dec1cb3f93eae4 (diff)
Treewide: Remove Elements() macro
Signed-off-by: Jan Vesely <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/tests/trivial/compute.c')
-rw-r--r--src/gallium/tests/trivial/compute.c6
1 files changed, 3 insertions, 3 deletions
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]);