mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
ir_constant_expression: Initialize all components of constant data to 0.
This is probably just a good idea, and will come in useful when implementing things like matrix multiplication.
This commit is contained in:
parent
d1a1ee583e
commit
c63a1db81f
1 changed files with 2 additions and 0 deletions
|
|
@ -133,6 +133,8 @@ ir_constant_visitor::visit(ir_expression *ir)
|
|||
unsigned int operand, c;
|
||||
ir_constant_data data;
|
||||
|
||||
memset(&data, 0, sizeof(data));
|
||||
|
||||
for (operand = 0; operand < ir->get_num_operands(); operand++) {
|
||||
op[operand] = ir->operands[operand]->constant_expression_value();
|
||||
if (!op[operand])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue