assembler: set the default source arg swizzle to the correct value.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 23 Jul 2020 05:12:09 -0400
changeset 1298 b70ccc2c7a51
parent 1297 5667281f0da9
child 1299 02d36217591b
assembler: set the default source arg swizzle to the correct value.
mojoshader_assembler.c
--- a/mojoshader_assembler.c	Mon Jul 20 20:07:44 2020 -0400
+++ b/mojoshader_assembler.c	Thu Jul 23 05:12:09 2020 -0400
@@ -1471,6 +1471,7 @@
     ctx->malloc_data = d;
     ctx->current_position = MOJOSHADER_POSITION_BEFORE;
     ctx->default_writemask = 0xF;
+    ctx->default_swizzle = 0xE4;  // 0xE4 == 11100100 ... 0 1 2 3. No swizzle.
 
     const size_t outblk = sizeof (uint32) * 4 * 64; // 64 4-token instrs.
     ctx->output = buffer_create(outblk, MallocBridge, FreeBridge, ctx);