i965/vs: Fix copy-and-paste disaster in pre-gen6 POW support.
authorEric Anholt <eric@anholt.net>
Fri, 2 Sep 2011 23:58:30 +0000 (16:58 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 7 Sep 2011 01:01:20 +0000 (18:01 -0700)
Fixes vs-pow-float-float and friends.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp

index 2d1c878706b29f5359feaa30c6913a1d6acd6a28..4b8b276bb395c85c12ace6ef04fd576715f3ef09 100644 (file)
@@ -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