summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/graw-null/graw_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/targets/graw-null/graw_util.c')
-rw-r--r--src/gallium/targets/graw-null/graw_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/targets/graw-null/graw_util.c b/src/gallium/targets/graw-null/graw_util.c
index 03b45d99e9d..bf7f258f3cc 100644
--- a/src/gallium/targets/graw-null/graw_util.c
+++ b/src/gallium/targets/graw-null/graw_util.c
@@ -19,7 +19,7 @@ graw_parse_geometry_shader(struct pipe_context *pipe,
struct tgsi_token tokens[1024];
struct pipe_shader_state state;
- if (!tgsi_text_translate(text, tokens, Elements(tokens)))
+ if (!tgsi_text_translate(text, tokens, ARRAY_SIZE(tokens)))
return NULL;
memset(&state, 0, sizeof state);
@@ -34,7 +34,7 @@ graw_parse_vertex_shader(struct pipe_context *pipe,
struct tgsi_token tokens[1024];
struct pipe_shader_state state;
- if (!tgsi_text_translate(text, tokens, Elements(tokens)))
+ if (!tgsi_text_translate(text, tokens, ARRAY_SIZE(tokens)))
return NULL;
memset(&state, 0, sizeof state);
@@ -49,7 +49,7 @@ graw_parse_fragment_shader(struct pipe_context *pipe,
struct tgsi_token tokens[1024];
struct pipe_shader_state state;
- if (!tgsi_text_translate(text, tokens, Elements(tokens)))
+ if (!tgsi_text_translate(text, tokens, ARRAY_SIZE(tokens)))
return NULL;
memset(&state, 0, sizeof state);