From a609da60c034ab059ead213e6c25fe4d37bf7d43 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 26 Apr 2016 18:10:00 -0600 Subject: gallium/util: s/Elements/ARRAY_SIZE/ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/gallium/auxiliary/util/u_blitter.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gallium/auxiliary/util/u_blitter.c') 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]); -- cgit v1.2.3