glsl2: Insert global declarations at the top of the instruction stream.
authorEric Anholt <eric@anholt.net>
Thu, 5 Aug 2010 21:41:09 +0000 (14:41 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 5 Aug 2010 21:41:09 +0000 (14:41 -0700)
commit8048226b7b1bbe8fd89f9c32fa4fadca4b8760c4
tree55b73abdfee86352226cfe52c87e769f070b6917
parent0a0ab121f87a3b00e29c20a38fdd28e2fc31bae7
glsl2: Insert global declarations at the top of the instruction stream.

Fixes use-before-decl in glslparsertest shaders.

Fixes:
CorrectFull.frag
CorrectModule.frag
src/glsl/ast_to_hir.cpp