summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_blitter.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_blitter.c
parentf365488eaaaaab8eb61bc614a105f397c5c80a6f (diff)
gallium/util: s/Elements/ARRAY_SIZE/
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_blitter.c')
-rw-r--r--src/gallium/auxiliary/util/u_blitter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index 8d7cc9630d9..958d2ab7ea4 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -428,7 +428,7 @@ void util_blitter_destroy(struct blitter_context *blitter)
for (j = 0; j < 2; j++)
pipe->delete_blend_state(pipe, ctx->blend[i][j]);
- for (i = 0; i < Elements(ctx->blend_clear); i++) {
+ for (i = 0; i < ARRAY_SIZE(ctx->blend_clear); i++) {
if (ctx->blend_clear[i])
pipe->delete_blend_state(pipe, ctx->blend_clear[i]);
}
@@ -483,17 +483,17 @@ void util_blitter_destroy(struct blitter_context *blitter)
if (ctx->fs_texfetch_stencil_msaa[i])
ctx->delete_fs_state(pipe, ctx->fs_texfetch_stencil_msaa[i]);
- for (j = 0; j< Elements(ctx->fs_resolve[i]); j++)
+ for (j = 0; j< ARRAY_SIZE(ctx->fs_resolve[i]); j++)
for (f = 0; f < 2; f++)
if (ctx->fs_resolve[i][j][f])
ctx->delete_fs_state(pipe, ctx->fs_resolve[i][j][f]);
- for (j = 0; j< Elements(ctx->fs_resolve_sint[i]); j++)
+ for (j = 0; j< ARRAY_SIZE(ctx->fs_resolve_sint[i]); j++)
for (f = 0; f < 2; f++)
if (ctx->fs_resolve_sint[i][j][f])
ctx->delete_fs_state(pipe, ctx->fs_resolve_sint[i][j][f]);
- for (j = 0; j< Elements(ctx->fs_resolve_uint[i]); j++)
+ for (j = 0; j< ARRAY_SIZE(ctx->fs_resolve_uint[i]); j++)
for (f = 0; f < 2; f++)
if (ctx->fs_resolve_uint[i][j][f])
ctx->delete_fs_state(pipe, ctx->fs_resolve_uint[i][j][f]);