i965: Add switch cases for ir_unop_noise, which should have been lowered.

Fixes compiler warnings.
This commit is contained in:
Eric Anholt 2010-09-09 19:49:58 -07:00
parent 50526e094f
commit 6ef5f21234
2 changed files with 7 additions and 0 deletions

View file

@ -753,6 +753,10 @@ fs_visitor::visit(ir_expression *ir)
assert(!"not reached: should be handled by brw_channel_expressions");
break;
case ir_unop_noise:
assert(!"not reached: should be handled by lower_noise");
break;
case ir_unop_sqrt:
emit(fs_inst(FS_OPCODE_SQRT, this->result, op[0]));
break;

View file

@ -356,6 +356,9 @@ ir_channel_expressions_visitor::visit_leave(ir_assignment *ir)
assign(ir, 0, last);
break;
}
case ir_unop_noise:
assert(!"noise should have been broken down to function call");
break;
}
ir->remove();