i965: Set SWIZZLE_NOOP for unused texture units in the program keys.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Aug 2012 18:05:55 +0000 (11:05 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 25 Aug 2012 19:01:09 +0000 (12:01 -0700)
commit76d1301e8e8e50dc962601a9977bc52148798349
tree922c501d8a7288d37c3138ad4b44b91e462f1b62
parentf510dd5d60401ee44512ba7ae4ded3b32b19f12d
i965: Set SWIZZLE_NOOP for unused texture units in the program keys.

Previously, we left the swizzle key field as zero for unused texture
units.  The precompile sets all of them to SWIZZLE_NOOP, which meant
that we mismatched almost every time.

Since either works equally well, change it to SWIZZLE_NOOP to match
the precompiles.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_wm.c