intel: Decrease nesting level in intelCreateBuffer
[mesa.git] / src / glsl / opt_copy_propagation_elements.cpp
index 314db4e187ff7d74f8fed2d5b56fb3d6c2c4e071..de9f4ef6f670c08d1ec55683c393fcbbdeb2b5f8 100644 (file)
@@ -49,6 +49,8 @@
 
 static bool debug = false;
 
+namespace {
+
 class acp_entry : public exec_node
 {
 public:
@@ -93,6 +95,7 @@ public:
    ir_copy_propagation_elements_visitor()
    {
       this->progress = false;
+      this->killed_all = false;
       this->mem_ctx = ralloc_context(NULL);
       this->shader_mem_ctx = NULL;
       this->acp = new(mem_ctx) exec_list;
@@ -134,6 +137,8 @@ public:
    void *shader_mem_ctx;
 };
 
+} /* unnamed namespace */
+
 ir_visitor_status
 ir_copy_propagation_elements_visitor::visit_enter(ir_function_signature *ir)
 {