summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_render_surface.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-04-28 11:39:15 -0600
committerBrian Paul <[email protected]>2016-05-03 15:40:48 -0600
commite193c5dd59555cea56f5d72b4800a54cc77bc76d (patch)
tree6873c012a8e83c69462f88706a0f1fb2f30ee63c /src/gallium/drivers/ilo/ilo_render_surface.c
parent951bf8b4a64c9793d10e963889e74fc1659ddb4b (diff)
ilo: s/Elements/ARRAY_SIZE/
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_render_surface.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_render_surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_render_surface.c b/src/gallium/drivers/ilo/ilo_render_surface.c
index 3bf8646b344..50f00d20bf3 100644
--- a/src/gallium/drivers/ilo/ilo_render_surface.c
+++ b/src/gallium/drivers/ilo/ilo_render_surface.c
@@ -530,9 +530,9 @@ gen6_emit_launch_grid_surface_global(struct ilo_render *r,
if (!count)
return;
- if (base + count > Elements(r->state.cs.SURFACE_STATE)) {
+ if (base + count > ARRAY_SIZE(r->state.cs.SURFACE_STATE)) {
ilo_warn("too many global bindings\n");
- count = Elements(r->state.cs.SURFACE_STATE) - base;
+ count = ARRAY_SIZE(r->state.cs.SURFACE_STATE) - base;
}
/* SURFACE_STATEs for global bindings */