diff options
author | Brian Paul <[email protected]> | 2016-04-25 15:53:04 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-04-27 10:23:19 -0600 |
commit | f93802c465b021592837c846d713146ddc1a8155 (patch) | |
tree | febd0e2fe18c326c0de10d48c870ad617b7a1b7d /src/gallium/drivers/softpipe/sp_flush.c | |
parent | 562c4a17b7e4fb56c7db679233b4a48f8b80b0f2 (diff) |
softpipe: s/Elements/ARRAY_SIZE/
Try to standardize on the later, which is defined in the common util/
directory.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_flush.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_flush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_flush.c b/src/gallium/drivers/softpipe/sp_flush.c index 59b8ad696ec..29fcf7f1628 100644 --- a/src/gallium/drivers/softpipe/sp_flush.c +++ b/src/gallium/drivers/softpipe/sp_flush.c @@ -56,7 +56,7 @@ softpipe_flush( struct pipe_context *pipe, if (flags & SP_FLUSH_TEXTURE_CACHE) { unsigned sh; - for (sh = 0; sh < Elements(softpipe->tex_cache); sh++) { + for (sh = 0; sh < ARRAY_SIZE(softpipe->tex_cache); sh++) { for (i = 0; i < softpipe->num_sampler_views[sh]; i++) { sp_flush_tex_tile_cache(softpipe->tex_cache[sh][i]); } @@ -174,7 +174,7 @@ void softpipe_texture_barrier(struct pipe_context *pipe) struct softpipe_context *softpipe = softpipe_context(pipe); uint i, sh; - for (sh = 0; sh < Elements(softpipe->tex_cache); sh++) { + for (sh = 0; sh < ARRAY_SIZE(softpipe->tex_cache); sh++) { for (i = 0; i < softpipe->num_sampler_views[sh]; i++) { sp_flush_tex_tile_cache(softpipe->tex_cache[sh][i]); } |