[Mesa-dev] [PATCH 03/10] i965/vs: Fix copy-and-paste disaster in pre-gen6 POW support.

Eric Anholt eric at anholt.net
Fri Sep 2 18:37:13 PDT 2011


Fixes vs-pow-float-float and friends.
---
 src/mesa/drivers/dri/i965/brw_vec4_emit.cpp |    5 -----
 1 files changed, 0 insertions(+), 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 2d1c878..4b8b276 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
-- 
1.7.5.4



More information about the mesa-dev mailing list