mojoshader_assembler.c
changeset 1291 db27fb09421a
parent 1290 2febe5ae83ad
child 1298 b70ccc2c7a51
equal deleted inserted replaced
1290:2febe5ae83ad 1291:db27fb09421a
  1252     // !!! FIXME: predicated instructions
  1252     // !!! FIXME: predicated instructions
  1253 
  1253 
  1254     ctx->tokenbufpos = 0;
  1254     ctx->tokenbufpos = 0;
  1255     ctx->default_writemask = instruction->default_writemask;
  1255     ctx->default_writemask = instruction->default_writemask;
  1256 
  1256 
  1257     if (opcode == OPCODE_RCP)  // RCP has an implicit swizzle of .xxxx if not specified.
  1257     // RCP and RSQ have an implicit swizzle of .xxxx if not specified.
       
  1258     if ((opcode == OPCODE_RCP) || (opcode == OPCODE_RSQ))
  1258         ctx->default_swizzle = 0;  // .xxxx replicate swizzle.
  1259         ctx->default_swizzle = 0;  // .xxxx replicate swizzle.
  1259 
  1260 
  1260     const int tokcount = instruction->parse_args(ctx);
  1261     const int tokcount = instruction->parse_args(ctx);
  1261 
  1262 
  1262     // insttoks bits are reserved and should be zero if < SM2.
  1263     // insttoks bits are reserved and should be zero if < SM2.