mesa: change constant search behaviour in _mesa_add_unnamed_constant()
authorBrian Paul <brianp@vmware.com>
Tue, 5 Jan 2010 16:57:41 +0000 (09:57 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 5 Jan 2010 18:44:19 +0000 (11:44 -0700)
commitf27e39aa4ec267fd2074a73da14bf1b4d2f8fb13
treef2d3e7077f2e6e5a06dc3450a2643565b2b6e8ba
parent38d8b180038eef692cbc75731d340c9fcc721784
mesa: change constant search behaviour in _mesa_add_unnamed_constant()

Only search for an existing, matching constant if swizzleOut is non-null.
We need to be able to disable constant consolidation when building an
array of constants which will be indexed indirectly.
src/mesa/shader/prog_parameter.c