diff options
author | Brian Paul <brianp@vmware.com> | 2016-04-26 18:10:00 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2016-04-28 09:04:24 -0600 |
commit | a609da60c034ab059ead213e6c25fe4d37bf7d43 (patch) | |
tree | 304c819444d2f3fa5dae43ba1ea1b51d659a23b2 /src/gallium/auxiliary/util/u_simple_shaders.c | |
parent | f365488eaaaaab8eb61bc614a105f397c5c80a6f (diff) |
gallium/util: s/Elements/ARRAY_SIZE/
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/gallium/auxiliary/util/u_simple_shaders.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_simple_shaders.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/util/u_simple_shaders.c b/src/gallium/auxiliary/util/u_simple_shaders.c index 8c739da1ee8..8a32dbc0fb8 100644 --- a/src/gallium/auxiliary/util/u_simple_shaders.c +++ b/src/gallium/auxiliary/util/u_simple_shaders.c @@ -123,7 +123,7 @@ void *util_make_layered_clear_vertex_shader(struct pipe_context *pipe) 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))) { assert(0); return NULL; } @@ -151,7 +151,7 @@ void *util_make_layered_clear_helper_vertex_shader(struct pipe_context *pipe) 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))) { assert(0); return NULL; } @@ -194,7 +194,7 @@ void *util_make_layered_clear_geometry_shader(struct pipe_context *pipe) 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))) { assert(0); return NULL; } @@ -478,7 +478,7 @@ util_make_fragment_passthrough_shader(struct pipe_context *pipe, tgsi_semantic_names[input_semantic], tgsi_interpolate_names[input_interpolate]); - if (!tgsi_text_translate(text, tokens, Elements(tokens))) { + if (!tgsi_text_translate(text, tokens, ARRAY_SIZE(tokens))) { assert(0); return NULL; } @@ -566,7 +566,7 @@ util_make_fs_blit_msaa_gen(struct pipe_context *pipe, sprintf(text, shader_templ, type, samp_type, output_semantic, output_mask, type); - if (!tgsi_text_translate(text, tokens, Elements(tokens))) { + if (!tgsi_text_translate(text, tokens, ARRAY_SIZE(tokens))) { puts(text); assert(0); return NULL; @@ -666,7 +666,7 @@ util_make_fs_blit_msaa_depthstencil(struct pipe_context *pipe, sprintf(text, shader_templ, type, type, type); - if (!tgsi_text_translate(text, tokens, Elements(tokens))) { + if (!tgsi_text_translate(text, tokens, ARRAY_SIZE(tokens))) { assert(0); return NULL; } |