summaryrefslogtreecommitdiff
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorJan Vesely <jano.vesely@gmail.com>2016-05-17 09:25:44 -0400
committerJan Vesely <jan.vesely@rutgers.edu>2016-05-17 15:28:04 -0400
commit47b390fe45e5e6f982c60b58985892438959cd8e (patch)
tree61a26199f85287a7e918c6c52db243280b6a3cba /src/gallium/targets
parent322cd2457ccf66a0a88d92f0b0dec1cb3f93eae4 (diff)
Treewide: Remove Elements() macro
Signed-off-by: Jan Vesely <jano.vesely@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/targets')
-rw-r--r--src/gallium/targets/d3dadapter9/getproc.c2
-rw-r--r--src/gallium/targets/graw-null/graw_util.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/targets/d3dadapter9/getproc.c b/src/gallium/targets/d3dadapter9/getproc.c
index 2aa79a444e..c8cd8bac16 100644
--- a/src/gallium/targets/d3dadapter9/getproc.c
+++ b/src/gallium/targets/d3dadapter9/getproc.c
@@ -38,7 +38,7 @@ PUBLIC const void * WINAPI
D3DAdapter9GetProc( const char *name )
{
int i;
- for (i = 0; i < Elements(drivers); ++i) {
+ for (i = 0; i < ARRAY_SIZE(drivers); ++i) {
if (strcmp(name, drivers[i].name) == 0) {
return drivers[i].desc;
}
diff --git a/src/gallium/targets/graw-null/graw_util.c b/src/gallium/targets/graw-null/graw_util.c
index 03b45d99e9..bf7f258f3c 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);