summaryrefslogtreecommitdiffstats
path: root/src/glsl/lower_if_to_cond_assign.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/lower_if_to_cond_assign.cpp')
-rw-r--r--src/glsl/lower_if_to_cond_assign.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/lower_if_to_cond_assign.cpp b/src/glsl/lower_if_to_cond_assign.cpp
index 2c5d5612d0d..1e7ce51c707 100644
--- a/src/glsl/lower_if_to_cond_assign.cpp
+++ b/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)
{