ARB prog parser: add allowSwizzle param to initialize_symbol_from_const()
authorBrian Paul <brianp@vmware.com>
Tue, 5 Jan 2010 17:01:20 +0000 (10:01 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 5 Jan 2010 18:44:19 +0000 (11:44 -0700)
commit7c6ae4c6c87edd02671a3857d1f774835b923e59
tree7231cf18aa3f36e0ea74091c0b3ff90fa5a07cf4
parent37f6929d29c9d3fbec873c0576a343d342ffdedf
ARB prog parser: add allowSwizzle param to initialize_symbol_from_const()

We need to disable constant consolidation when building an array of
constants which might be indexed indirectly.

Fixes regression in piglit vpfp-generic vp-arl-constant-array.vpfp
test caused by earlier constant consolidation patch.
src/mesa/shader/program_parse.y