i965/fs: Suppress printing the whole loop in BRW_OPCODE_DO annotation.
authorEric Anholt <eric@anholt.net>
Wed, 11 Apr 2012 20:45:55 +0000 (13:45 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 20 Apr 2012 00:44:54 +0000 (17:44 -0700)
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp

index 51c1fd2..8e98e1b 100644 (file)
@@ -1698,6 +1698,7 @@ fs_visitor::visit(ir_loop *ir)
       }
    }
 
+   this->base_ir = NULL;
    emit(BRW_OPCODE_DO);
 
    if (ir->to) {
@@ -1724,6 +1725,7 @@ fs_visitor::visit(ir_loop *ir)
       emit(BRW_OPCODE_ADD, counter, counter, this->result);
    }
 
+   this->base_ir = NULL;
    emit(BRW_OPCODE_WHILE);
 }