r300-gallium: vs: Add writemasks.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 9 May 2009 05:45:56 +0000 (22:45 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 9 May 2009 07:45:47 +0000 (00:45 -0700)
src/gallium/drivers/r300/r300_state_tcl.c

index d84912de48fdefab062cfb9abd5cc31bf979fd58..c52ce258c2e7be3975c3963521ef6b797d1a899f 100644 (file)
@@ -169,7 +169,7 @@ static void r300_vs_emit_inst(struct r300_vertex_shader* vs,
     vs->instructions[i].inst0 = R300_PVS_DST_OPCODE(r300_vs_op(op)) |
         R300_PVS_DST_REG_TYPE(r300_vs_dst_type(assembler, &dst->DstRegister)) |
         R300_PVS_DST_OFFSET(r300_vs_dst(assembler, &dst->DstRegister)) |
-        R300_PVS_DST_WE_XYZW;
+        R300_PVS_DST_WE(dst->DstRegister.WriteMask);
     switch (count) {
         case 3:
             vs->instructions[i].inst3 =