Skip to content

Commit

Permalink
assembler: set the default source arg swizzle to the correct value.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 23, 2020
1 parent 910ee02 commit 98891de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mojoshader_assembler.c
Expand Up @@ -1471,6 +1471,7 @@ static Context *build_context(const char *filename,
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);
Expand Down

0 comments on commit 98891de

Please sign in to comment.