diff options
author | Brian Paul <[email protected]> | 2015-02-28 09:05:29 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-03-02 08:55:30 -0700 |
commit | 49a7f8c919d23fec977116f218780a35896cc1dd (patch) | |
tree | 65f835e6df566dd15c5c5f0bf0921b72ebf681ea /src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | |
parent | b565771003fc416e6ccccda8b10efa2423ae7e5a (diff) |
i965: replace Elements() with ARRAY_SIZE()
Acked-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index c174fdbf57e..5bf9e1bcf12 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -1305,7 +1305,7 @@ void vec4_visitor::visit(ir_expression *ir) { unsigned int operand; - src_reg op[Elements(ir->operands)]; + src_reg op[ARRAY_SIZE(ir->operands)]; vec4_instruction *inst; if (ir->operation == ir_binop_add) { |