i965/nir/vec4: removed unneeded tex src swizzle set
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sat, 5 Sep 2015 13:26:59 +0000 (15:26 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Mon, 7 Sep 2015 08:10:42 +0000 (10:10 +0200)
At that point the swizzle should be correct.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 0ff298ed0e9098e34392fbb3b281e3a58fbe494d..f6e59ce41969ebf1c26c374a4ee0e5a459764e9e 100644 (file)
@@ -2624,7 +2624,6 @@ vec4_visitor::emit_texture(ir_texture_opcode op,
            mrf = param_base;
            writemask = WRITEMASK_W;
         }
-         lod.swizzle = BRW_SWIZZLE_XXXX;
         emit(MOV(dst_reg(MRF, mrf, lod.type, writemask), lod));
       } else if (op == ir_txf) {
          emit(MOV(dst_reg(MRF, param_base, lod.type, WRITEMASK_W), lod));