diff options
author | marha <marha@users.sourceforge.net> | 2011-05-02 06:49:56 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-05-02 06:49:56 +0000 |
commit | e8af1ef3142aaaf2d17f2d3710e23eee1baf8a61 (patch) | |
tree | 115901d752ba4f277ef82564bad209082f1feb2e /mesalib/src/mesa/program/ir_to_mesa.cpp | |
parent | e4dd9264ee8d4a20eef0eec8c8bf8cff2473b46f (diff) | |
parent | 34f1ddbb272a5ad55f56d54e2f861da6360db04f (diff) | |
download | vcxsrv-e8af1ef3142aaaf2d17f2d3710e23eee1baf8a61.tar.gz vcxsrv-e8af1ef3142aaaf2d17f2d3710e23eee1baf8a61.tar.bz2 vcxsrv-e8af1ef3142aaaf2d17f2d3710e23eee1baf8a61.zip |
svn merge ^/branches/released .
Diffstat (limited to 'mesalib/src/mesa/program/ir_to_mesa.cpp')
-rw-r--r-- | mesalib/src/mesa/program/ir_to_mesa.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mesalib/src/mesa/program/ir_to_mesa.cpp b/mesalib/src/mesa/program/ir_to_mesa.cpp index f6b4ddfb6..8dae7bb23 100644 --- a/mesalib/src/mesa/program/ir_to_mesa.cpp +++ b/mesalib/src/mesa/program/ir_to_mesa.cpp @@ -1481,7 +1481,6 @@ ir_to_mesa_visitor::visit(ir_dereference_array *ir) if (index) {
src.index += index->value.i[0] * element_size;
} else {
- 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 Mesa register
* index.
@@ -2163,7 +2162,7 @@ ir_to_mesa_visitor::visit(ir_discard *ir) void
ir_to_mesa_visitor::visit(ir_if *ir)
{
- ir_to_mesa_instruction *cond_inst, *if_inst, *else_inst = NULL;
+ ir_to_mesa_instruction *cond_inst, *if_inst;
ir_to_mesa_instruction *prev_inst;
prev_inst = (ir_to_mesa_instruction *)this->instructions.get_tail();
@@ -2195,7 +2194,7 @@ ir_to_mesa_visitor::visit(ir_if *ir) visit_exec_list(&ir->then_instructions, this);
if (!ir->else_instructions.is_empty()) {
- else_inst = emit(ir->condition, OPCODE_ELSE);
+ emit(ir->condition, OPCODE_ELSE);
visit_exec_list(&ir->else_instructions, this);
}
|