diff options
author | Brian Paul <[email protected]> | 2016-04-26 18:10:00 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-04-28 09:04:24 -0600 |
commit | a609da60c034ab059ead213e6c25fe4d37bf7d43 (patch) | |
tree | 304c819444d2f3fa5dae43ba1ea1b51d659a23b2 /src/gallium/auxiliary/util/u_tests.c | |
parent | f365488eaaaaab8eb61bc614a105f397c5c80a6f (diff) |
gallium/util: s/Elements/ARRAY_SIZE/
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_tests.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_tests.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_tests.c b/src/gallium/auxiliary/util/u_tests.c index 006dfa95af2..e6998281bc9 100644 --- a/src/gallium/auxiliary/util/u_tests.c +++ b/src/gallium/auxiliary/util/u_tests.c @@ -424,7 +424,7 @@ null_constant_buffer(struct pipe_context *ctx) struct tgsi_token tokens[1000]; struct pipe_shader_state state = {tokens}; - if (!tgsi_text_translate(text, tokens, Elements(tokens))) { + if (!tgsi_text_translate(text, tokens, ARRAY_SIZE(tokens))) { puts("Can't compile a fragment shader."); util_report_result(FAIL); return; |