if (index) {
src.index += index->value.i[0] * element_size;
} else {
- st_src_reg array_base = this->result;
/* Variable index array dereference. It eats the "vec4" of the
* base of the array and an index that offsets the TGSI register
* index.
void
glsl_to_tgsi_visitor::visit(ir_if *ir)
{
- glsl_to_tgsi_instruction *cond_inst, *if_inst, *else_inst = NULL;
+ glsl_to_tgsi_instruction *cond_inst, *if_inst;
glsl_to_tgsi_instruction *prev_inst;
prev_inst = (glsl_to_tgsi_instruction *)this->instructions.get_tail();
visit_exec_list(&ir->then_instructions, this);
if (!ir->else_instructions.is_empty()) {
- else_inst = emit(ir->condition, TGSI_OPCODE_ELSE);
+ emit(ir->condition, TGSI_OPCODE_ELSE);
visit_exec_list(&ir->else_instructions, this);
}