Fixed writemask bits in assembled bytecode.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 10 Dec 2008 20:48:45 -0500
changeset 500 38ce929323c2
parent 499 baaa47f45109
child 501 314aa5c32820
Fixed writemask bits in assembled bytecode.
mojoshader_assembler.c
--- a/mojoshader_assembler.c	Wed Dec 10 15:41:54 2008 -0500
+++ b/mojoshader_assembler.c	Wed Dec 10 20:48:45 2008 -0500
@@ -712,6 +712,7 @@
               ((((uint32) info->relative) & 0x1) << 13) |
               ((((uint32) info->result_mod) & 0xF) << 20) |
               ((((uint32) info->result_shift) & 0xF) << 24) |
+              ((((uint32) info->writemask) & 0xF) << 16) |
               ((((uint32) info->regtype) & 0x7) << 28) |
               ((((uint32) info->regtype) & 0x18) << 8) );