Skip to content
Permalink
Browse files
RSQ opcode requires replicate swizzle.
  • Loading branch information
icculus committed Jul 20, 2020
1 parent 42cf2e1 commit 478b7df10d0a6678a293659d216d5e8bf154aa41

File 2 of 3 in 478b7df

@@ -1254,7 +1254,8 @@ static int parse_instruction_token(Context *ctx, Token token)
ctx->tokenbufpos = 0;
ctx->default_writemask = instruction->default_writemask;

if (opcode == OPCODE_RCP) // RCP has an implicit swizzle of .xxxx if not specified.
// RCP and RSQ have an implicit swizzle of .xxxx if not specified.
if ((opcode == OPCODE_RCP) || (opcode == OPCODE_RSQ))
ctx->default_swizzle = 0; // .xxxx replicate swizzle.

const int tokcount = instruction->parse_args(ctx);

0 comments on commit 478b7df

Please sign in to comment.