i965: Allow OPCODE_SWZ to put immediates in the first arg.
commitda5d6c42c02c9196a6de73c70b4c9107797a1095
authorEric Anholt <eric@anholt.net>
Wed, 10 Nov 2010 00:19:34 +0000 (9 16:19 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 15 Dec 2010 20:36:01 +0000 (15 12:36 -0800)
tree9b5646a601b8c1ffc0d66ae66924e80a7a6b9f85
parent0c56721cfc2fdc0bd87c3957082d332f1b4865b3
i965: Allow OPCODE_SWZ to put immediates in the first arg.

Fixes assertion failure with texture swizzling in the GLSL path when
it's triggered (such as gen6 FF or ARB_fp shadow comparisons).

Fixes:
texdepth
texSwizzle
fp1-DST test
fp1-LIT test 3
(cherry picked from commit f00929cbddf2ea5794bebf01ac45f4070416d334)
src/mesa/drivers/dri/i965/brw_wm_emit.c