[Mesa-dev] [PATCH 1/5] i965/fs: Suppress printing the whole loop in BRW_OPCODE_DO annotation.

Eric Anholt eric at anholt.net
Wed Apr 11 15:53:36 PDT 2012


---
 src/mesa/drivers/dri/i965/brw_fs_visitor.cpp |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index 0052428..836d501 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -1696,6 +1696,7 @@ fs_visitor::visit(ir_loop *ir)
       }
    }
 
+   this->base_ir = NULL;
    emit(BRW_OPCODE_DO);
 
    if (ir->to) {
@@ -1722,6 +1723,7 @@ fs_visitor::visit(ir_loop *ir)
       emit(BRW_OPCODE_ADD, counter, counter, this->result);
    }
 
+   this->base_ir = NULL;
    emit(BRW_OPCODE_WHILE);
 }
 
-- 
1.7.9.5



More information about the mesa-dev mailing list