Mesa (master): glsl: Re-synchronize ir_variable_mode and the printer' s string array.
Kenneth Graunke
kwg at kemper.freedesktop.org
Mon Jan 31 19:04:56 UTC 2011
Module: Mesa
Branch: master
Commit: 60c8e91c795dc604c08977d5773f96a4de8e402b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=60c8e91c795dc604c08977d5773f96a4de8e402b
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Jan 31 11:01:27 2011 -0800
glsl: Re-synchronize ir_variable_mode and the printer's string array.
Since the introduction of ir_var_system_value, system variables would be
printed as "temporary" and temporaries would result in out-of-bounds
array access, showing up as garbage in printed IR.
---
src/glsl/ir_print_visitor.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/glsl/ir_print_visitor.cpp b/src/glsl/ir_print_visitor.cpp
index c56bafd..d0373cb 100644
--- a/src/glsl/ir_print_visitor.cpp
+++ b/src/glsl/ir_print_visitor.cpp
@@ -97,7 +97,7 @@ void ir_print_visitor::visit(ir_variable *ir)
const char *const cent = (ir->centroid) ? "centroid " : "";
const char *const inv = (ir->invariant) ? "invariant " : "";
const char *const mode[] = { "", "uniform ", "in ", "out ", "inout ",
- "temporary " };
+ "sys ", "temporary " };
const char *const interp[] = { "", "flat", "noperspective" };
printf("(%s%s%s%s) ",
More information about the mesa-commit
mailing list