ir_reader: Emit global variables at the top of the instruction list.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 4 Sep 2010 08:55:55 +0000 (01:55 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 4 Sep 2010 09:19:38 +0000 (02:19 -0700)
commit2809d707231fba0e91abe1dd32e9f2d3284b9d3a
treefd52c7b685a6c5efe94eb9c3560a85b418416356
parentb758de16e3e6e27e9ead24aa6241b5d4db0d8836
ir_reader: Emit global variables at the top of the instruction list.

Since functions are emitted when scanning for prototypes, functions
always come first, even if the original IR listed the variable
declarations first.

Fixes an ir_validate error (to be turned on in the next commit).
src/glsl/ir_reader.cpp