aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/lower_if_to_cond_assign.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/glsl/lower_if_to_cond_assign.cpp')
-rw-r--r--mesalib/src/glsl/lower_if_to_cond_assign.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesalib/src/glsl/lower_if_to_cond_assign.cpp b/mesalib/src/glsl/lower_if_to_cond_assign.cpp
index 2c5d5612d..1e7ce51c7 100644
--- a/mesalib/src/glsl/lower_if_to_cond_assign.cpp
+++ b/mesalib/src/glsl/lower_if_to_cond_assign.cpp
@@ -49,6 +49,8 @@
#include "ir.h"
#include "program/hash_table.h"
+namespace {
+
class ir_if_to_cond_assign_visitor : public ir_hierarchical_visitor {
public:
ir_if_to_cond_assign_visitor(unsigned max_depth)
@@ -76,6 +78,8 @@ public:
struct hash_table *condition_variables;
};
+} /* anonymous namespace */
+
bool
lower_if_to_cond_assign(exec_list *instructions, unsigned max_depth)
{