glsl: Re-synchronize ir_variable_mode and the printer's string array.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 31 Jan 2011 19:01:27 +0000 (11:01 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 31 Jan 2011 19:04:37 +0000 (11:04 -0800)
commit60c8e91c795dc604c08977d5773f96a4de8e402b
tree81c0e0b908c466aa9f0a30a1f93f8196c41cee95
parent8c115aa247d4a2cfee5d35c5fdd6f56951060c6c
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