summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/r600_texture.c
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/drivers/radeon/r600_texture.c
parent322cd2457ccf66a0a88d92f0b0dec1cb3f93eae4 (diff)
downloadexternal_mesa3d-47b390fe45e5e6f982c60b58985892438959cd8e.zip
external_mesa3d-47b390fe45e5e6f982c60b58985892438959cd8e.tar.gz
external_mesa3d-47b390fe45e5e6f982c60b58985892438959cd8e.tar.bz2
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/drivers/radeon/r600_texture.c')
-rw-r--r--src/gallium/drivers/radeon/r600_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index 773d67a..c89afbc 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -313,7 +313,7 @@ static int r600_setup_surface(struct pipe_screen *screen,
}
if (offset) {
- for (i = 0; i < Elements(rtex->surface.level); ++i)
+ for (i = 0; i < ARRAY_SIZE(rtex->surface.level); ++i)
rtex->surface.level[i].offset += offset;
}
return 0;