i965/vs: Don't forget to set up assignment condition code for arrays/structs.
authorEric Anholt <eric@anholt.net>
Sat, 6 Aug 2011 03:26:48 +0000 (20:26 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 16 Aug 2011 20:04:42 +0000 (13:04 -0700)
Fixes vs-uniform-array-mat2-index-col-rd.

src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 7e0535b5c023310285d8b128470b1aae263e7ee7..27620c4708594f78fb8df94dd81fcde5345c722e 100644 (file)
@@ -1276,6 +1276,10 @@ vec4_visitor::emit_block_move(ir_assignment *ir)
 
    dst_reg dst = get_assignment_lhs(ir->lhs, this);
 
+   if (ir->condition) {
+      emit_bool_to_cond_code(ir->condition);
+   }
+
    /* FINISHME: This should really set to the correct maximal writemask for each
     * FINISHME: component written (in the loops below).
     */