shaders: Don't lose the param binding swizzle for single params.
authorEric Anholt <eric@anholt.net>
Wed, 2 Jun 2010 20:56:39 +0000 (13:56 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 2 Jun 2010 21:06:41 +0000 (14:06 -0700)
commit84db95bfcd340a26a448fa89a19215711681cb50
tree20bcbbb61dbf4e9b6b94a1685bb755913b961f06
parenta33b5ef7d02a45bda106065e7c927358b04fe289
shaders: Don't lose the param binding swizzle for single params.

Multiple item params are OK because we don't allow swizzles for them
(in case you do array access to hit their elements, for example).  For
singles, though, using the swizzle can cut down on storage, we do want
to allow a swizzled use of another param.

Fixes OGLC texRect.c.
src/mesa/shader/program_parse.tab.c
src/mesa/shader/program_parse.y