From 87be0ac96ce5aaea2a08f1ed63871c0dd3a3f9d5 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 2 Sep 2011 16:58:30 -0700 Subject: [PATCH] i965/vs: Fix copy-and-paste disaster in pre-gen6 POW support. Fixes vs-pow-float-float and friends. Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_vec4_emit.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp index 2d1c878706b..4b8b276bb39 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp @@ -319,12 +319,8 @@ vec4_visitor::generate_math2_gen4(vec4_instruction *inst, struct brw_reg src0, struct brw_reg src1) { - /* Can't do writemask because math can't be align16. */ - assert(dst.dw1.bits.writemask == WRITEMASK_XYZW); - brw_MOV(p, brw_message_reg(inst->base_mrf + 1), src1); - brw_set_access_mode(p, BRW_ALIGN_1); brw_math(p, dst, brw_math_function(inst->opcode), @@ -333,7 +329,6 @@ vec4_visitor::generate_math2_gen4(vec4_instruction *inst, src0, BRW_MATH_DATA_VECTOR, BRW_MATH_PRECISION_FULL); - brw_set_access_mode(p, BRW_ALIGN_16); } void -- 2.30.2