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_context.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_context.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_context.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c index 896dcdf59d0..32dc209b619 100644 --- a/src/gallium/drivers/svga/svga_context.c +++ b/src/gallium/drivers/svga/svga_context.c @@ -61,7 +61,7 @@ static void svga_destroy( struct pipe_context *pipe ) unsigned shader, i; /* free any alternate rasterizer states used for point sprite */ - for (i = 0; i < Elements(svga->rasterizer_no_cull); i++) { + for (i = 0; i < ARRAY_SIZE(svga->rasterizer_no_cull); i++) { if (svga->rasterizer_no_cull[i]) { pipe->delete_rasterizer_state(pipe, svga->rasterizer_no_cull[i]); } @@ -78,7 +78,7 @@ static void svga_destroy( struct pipe_context *pipe ) pipe_resource_reference(&svga->polygon_stipple.texture, NULL); /* free HW constant buffers */ - for (shader = 0; shader < Elements(svga->state.hw_draw.constbuf); shader++) { + for (shader = 0; shader < ARRAY_SIZE(svga->state.hw_draw.constbuf); shader++) { pipe_resource_reference(&svga->state.hw_draw.constbuf[shader], NULL); } @@ -116,7 +116,7 @@ static void svga_destroy( struct pipe_context *pipe ) /* free user's constant buffers */ for (shader = 0; shader < PIPE_SHADER_TYPES; ++shader) { - for (i = 0; i < Elements(svga->curr.constbufs[shader]); ++i) { + for (i = 0; i < ARRAY_SIZE(svga->curr.constbufs[shader]); ++i) { pipe_resource_reference(&svga->curr.constbufs[shader][i].buffer, NULL); } } |