aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_blit.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-04-26 18:10:00 -0600
committerBrian Paul <[email protected]>2016-04-28 09:04:24 -0600
commita609da60c034ab059ead213e6c25fe4d37bf7d43 (patch)
tree304c819444d2f3fa5dae43ba1ea1b51d659a23b2 /src/gallium/auxiliary/util/u_blit.c
parentf365488eaaaaab8eb61bc614a105f397c5c80a6f (diff)
gallium/util: s/Elements/ARRAY_SIZE/
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_blit.c')
-rw-r--r--src/gallium/auxiliary/util/u_blit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_blit.c b/src/gallium/auxiliary/util/u_blit.c
index 3677515423c..5bcd8bbceef 100644
--- a/src/gallium/auxiliary/util/u_blit.c
+++ b/src/gallium/auxiliary/util/u_blit.c
@@ -140,9 +140,9 @@ util_destroy_blit(struct blit_state *ctx)
if (ctx->vs)
pipe->delete_vs_state(pipe, ctx->vs);
- for (i = 0; i < Elements(ctx->fs); i++) {
- for (j = 0; j < Elements(ctx->fs[i]); j++) {
- for (k = 0; k < Elements(ctx->fs[i][j]); k++) {
+ for (i = 0; i < ARRAY_SIZE(ctx->fs); i++) {
+ for (j = 0; j < ARRAY_SIZE(ctx->fs[i]); j++) {
+ for (k = 0; k < ARRAY_SIZE(ctx->fs[i][j]); k++) {
if (ctx->fs[i][j][k])
pipe->delete_fs_state(pipe, ctx->fs[i][j][k]);
}