i965: handle OPCODE_SWZ in the glsl path
authorRoland Scheidegger <sroland@vmware.com>
Tue, 16 Jun 2009 19:38:58 +0000 (21:38 +0200)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 22 Jun 2009 22:15:20 +0000 (15:15 -0700)
commit2f184d0d9f4600a20022887674b77f45ee6b728e
tree312636c5368f02be76ba6794a29effee9d4a251b
parent9d367d43b2fddb9a27d4be6302da172ab773ca91
i965: handle OPCODE_SWZ in the glsl path

glsl compiler will not generate OPCODE_SWZ, and as a first step it would
be translated away to a MOV anyway (why?), but later internally this opcode is
generated (for EXT_texture_swizzling).
(cherry picked from commit 4ef1f8e3b52a06fcf58f78c9c36738531b91dbac)
src/mesa/drivers/dri/i965/brw_wm_glsl.c