glsl2: Put the declaration in the instruction stream before its initializer.
authorEric Anholt <eric@anholt.net>
Wed, 7 Jul 2010 01:31:32 +0000 (18:31 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 7 Jul 2010 01:49:24 +0000 (18:49 -0700)
commitd4d630b72c7b7f38074addda0f1b819608247d93
tree13e460270af9a8607a33ce2115a7b1688624732b
parenta36334be02cb0a2b834667116bfeb680bf365857
glsl2: Put the declaration in the instruction stream before its initializer.

This fixes a regression in the generated code from when I did the
ir_validate.cpp-driven rework of assignments.
src/glsl/ast_to_hir.cpp