aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915/i915_state_emit.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-04-28 11:37:50 -0600
committerBrian Paul <[email protected]>2016-05-03 15:40:48 -0600
commit951bf8b4a64c9793d10e963889e74fc1659ddb4b (patch)
tree8f14d66b2e29250f9c06d7f341682b257cd29160 /src/gallium/drivers/i915/i915_state_emit.c
parent5658ddc7fe828813f8e10de06a830d8a4cdb576d (diff)
i915g: s/Elements/ARRAY_SIZE/
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/i915/i915_state_emit.c')
-rw-r--r--src/gallium/drivers/i915/i915_state_emit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915/i915_state_emit.c b/src/gallium/drivers/i915/i915_state_emit.c
index 92751f3cf8b..a407020f67a 100644
--- a/src/gallium/drivers/i915/i915_state_emit.c
+++ b/src/gallium/drivers/i915/i915_state_emit.c
@@ -110,7 +110,7 @@ static void
emit_invariant(struct i915_context *i915)
{
i915_winsys_batchbuffer_write(i915->batch, invariant_state,
- Elements(invariant_state)*sizeof(uint32_t));
+ ARRAY_SIZE(invariant_state)*sizeof(uint32_t));
}
static void
@@ -495,7 +495,7 @@ i915_validate_state(struct i915_context *i915, unsigned *batch_space)
i915->num_validation_buffers = 0;
if (i915->hardware_dirty & I915_HW_INVARIANT)
- *batch_space = Elements(invariant_state);
+ *batch_space = ARRAY_SIZE(invariant_state);
else
*batch_space = 0;