i965: fix bogus swizzle in brw_cubemap_normalize
authorChris Forbes <chrisf@ijw.co.nz>
Mon, 30 Sep 2013 09:10:17 +0000 (22:10 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Wed, 2 Oct 2013 18:54:53 +0000 (07:54 +1300)
commit0d7fc10bcd2efb2f96d684b3273b4e0c0b0afef0
tree04105027f89020ef6769e2100f6bacdb202cefc5
parent4e4c32ba11598818583ad0aa689339297ddf1c74
i965: fix bogus swizzle in brw_cubemap_normalize

When used with a cube array in VS, failed assertion in ir_validate:

   Assignment count of LHS write mask channels enabled not
   matching RHS vector size (3 LHS, 4 RHS).

To fix this, swizzle the RHS correctly for the writemask.

This showed up in the ARB_texture_gather tests, which exercise cube
arrays in the VS.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Cc: "9.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_cubemap_normalize.cpp