aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe/sp_state_image.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-04-25 15:53:04 -0600
committerBrian Paul <[email protected]>2016-04-27 10:23:19 -0600
commitf93802c465b021592837c846d713146ddc1a8155 (patch)
treefebd0e2fe18c326c0de10d48c870ad617b7a1b7d /src/gallium/drivers/softpipe/sp_state_image.c
parent562c4a17b7e4fb56c7db679233b4a48f8b80b0f2 (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_state_image.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_state_image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_state_image.c b/src/gallium/drivers/softpipe/sp_state_image.c
index 5947c934e86..b1810d3591f 100644
--- a/src/gallium/drivers/softpipe/sp_state_image.c
+++ b/src/gallium/drivers/softpipe/sp_state_image.c
@@ -35,7 +35,7 @@ static void softpipe_set_shader_images(struct pipe_context *pipe,
struct softpipe_context *softpipe = softpipe_context(pipe);
unsigned i;
assert(shader < PIPE_SHADER_TYPES);
- assert(start + num <= Elements(softpipe->sampler_views[shader]));
+ assert(start + num <= ARRAY_SIZE(softpipe->sampler_views[shader]));
/* set the new images */
for (i = 0; i < num; i++) {
@@ -61,7 +61,7 @@ static void softpipe_set_shader_buffers(struct pipe_context *pipe,
struct softpipe_context *softpipe = softpipe_context(pipe);
unsigned i;
assert(shader < PIPE_SHADER_TYPES);
- assert(start + num <= Elements(softpipe->buffers[shader]));
+ assert(start + num <= ARRAY_SIZE(softpipe->buffers[shader]));
/* set the new images */
for (i = 0; i < num; i++) {