projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
i915g: Use X tiling for textures
[mesa.git]
/
src
/
glsl
/
opt_swizzle_swizzle.cpp
diff --git
a/src/glsl/opt_swizzle_swizzle.cpp
b/src/glsl/opt_swizzle_swizzle.cpp
index 0ffb4fa3133b3934b9cbf51cb14b3df03ead423e..7564c6b3b1079cf031522fd52b9bff388ba73af1 100644
(file)
--- a/
src/glsl/opt_swizzle_swizzle.cpp
+++ b/
src/glsl/opt_swizzle_swizzle.cpp
@@
-22,7
+22,7
@@
*/
/**
*/
/**
- * \file
ir
_swizzle_swizzle.cpp
+ * \file
opt
_swizzle_swizzle.cpp
*
* Eliminates the second swizzle in a swizzle chain.
*/
*
* Eliminates the second swizzle in a swizzle chain.
*/
@@
-32,6
+32,8
@@
#include "ir_optimization.h"
#include "glsl_types.h"
#include "ir_optimization.h"
#include "glsl_types.h"
+namespace {
+
class ir_swizzle_swizzle_visitor : public ir_hierarchical_visitor {
public:
ir_swizzle_swizzle_visitor()
class ir_swizzle_swizzle_visitor : public ir_hierarchical_visitor {
public:
ir_swizzle_swizzle_visitor()
@@
-44,6
+46,8
@@
public:
bool progress;
};
bool progress;
};
+} /* unnamed namespace */
+
ir_visitor_status
ir_swizzle_swizzle_visitor::visit_enter(ir_swizzle *ir)
{
ir_visitor_status
ir_swizzle_swizzle_visitor::visit_enter(ir_swizzle *ir)
{