i965: Fix a crash in the texture gradient lowering pass with cube samplers
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 13 Feb 2015 07:29:32 +0000 (08:29 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 16 Feb 2015 09:53:48 +0000 (10:53 +0100)
commit0a811e1d1e5b23ecefda3f4569f68198e2612f3f
tree16ed3331d7fbc96cfcf066d7432d6e291a3ee8d9
parentba426522dddf0860f59dedfe9953dbd509160c7d
i965: Fix a crash in the texture gradient lowering pass with cube samplers

We need to swizzle the rhs to match the number of components in the writemask,
otherwise we'll hit an assertion in ir_assignment.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_lower_texture_gradients.cpp