diff options
author | Brian Paul <[email protected]> | 2016-04-25 09:34:40 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-04-25 12:59:29 -0600 |
commit | e0184b3995fa308c125ae8e090d2bbdffd495b5f (patch) | |
tree | f859ac4b8bd85d3b1fc7bc926d2b7f11d87a8402 /src/gallium/drivers/svga/svga_link.c | |
parent | 77e4b41671ecd7bde3a151627d4548106fc5be3c (diff) |
svga: s/Elements/ARRAY_SIZE/
Standardize on the later macro rather than a mix of both.
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_link.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_link.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/svga/svga_link.c b/src/gallium/drivers/svga/svga_link.c index f3e524d38ea..0aaaada4c60 100644 --- a/src/gallium/drivers/svga/svga_link.c +++ b/src/gallium/drivers/svga/svga_link.c @@ -45,7 +45,7 @@ svga_link_shaders(const struct tgsi_shader_info *outshader_info, { unsigned i, free_slot; - for (i = 0; i < Elements(linkage->input_map); i++) { + for (i = 0; i < ARRAY_SIZE(linkage->input_map); i++) { linkage->input_map[i] = INVALID_INDEX; } @@ -55,7 +55,7 @@ svga_link_shaders(const struct tgsi_shader_info *outshader_info, * We'll modify the input shader's inputs to match the output shader. */ assert(inshader_info->num_inputs <= - Elements(inshader_info->input_semantic_name)); + ARRAY_SIZE(inshader_info->input_semantic_name)); /* free register index that can be used for built-in varyings */ free_slot = outshader_info->num_outputs + 1; @@ -76,7 +76,7 @@ svga_link_shaders(const struct tgsi_shader_info *outshader_info, else { /* search output shader outputs for same item */ for (j = 0; j < outshader_info->num_outputs; j++) { - assert(j < Elements(outshader_info->output_semantic_name)); + assert(j < ARRAY_SIZE(outshader_info->output_semantic_name)); if (outshader_info->output_semantic_name[j] == sem_name && outshader_info->output_semantic_index[j] == sem_index) { linkage->input_map[i] = j; |