aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r--src/compiler/glsl/ir_print_visitor.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir_print_visitor.cpp b/src/compiler/glsl/ir_print_visitor.cpp
index 8914c6e2d02..034ee163cf9 100644
--- a/src/compiler/glsl/ir_print_visitor.cpp
+++ b/src/compiler/glsl/ir_print_visitor.cpp
@@ -226,6 +226,16 @@ void ir_print_visitor::visit(ir_variable *ir)
ir_print_type(f, ir->type);
fprintf(f, " %s)", unique_name(ir));
+
+ if (ir->constant_initializer) {
+ fprintf(f, " ");
+ visit(ir->constant_initializer);
+ }
+
+ if (ir->constant_value) {
+ fprintf(f, " ");
+ visit(ir->constant_value);
+ }
}