diff options
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_state_image.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_state_image.c | 4 |
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++) { |