Skip to content
Permalink
Browse files
Check for replicate swizzle in RCP opcode state.
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 22, 2008
1 parent 39d1dd0 commit 3f05c8c87e9d51e250eb99b58d7b02bd004b06e8

File 1 of 1 in 3f05c8c

@@ -3721,6 +3721,12 @@ static void state_MOVA(Context *ctx)
fail(ctx, "MOVA argument isn't address register");
} // state_MOVA

static void state_RCP(Context *ctx)
{
if (!replicate_swizzle(ctx->source_args[0].swizzle))
fail(ctx, "RCP without replicate swizzzle");
} // state_RCP

static void state_LOOP(Context *ctx)
{
if (ctx->source_args[0].regtype != REG_TYPE_LOOP)
@@ -3914,7 +3920,7 @@ static const Instruction instructions[] =
INSTRUCTION(SUB, DSS, MOJOSHADER_TYPE_ANY),
INSTRUCTION(MAD, DSSS, MOJOSHADER_TYPE_ANY),
INSTRUCTION(MUL, DSS, MOJOSHADER_TYPE_ANY),
INSTRUCTION(RCP, DS, MOJOSHADER_TYPE_ANY),
INSTRUCTION_STATE(RCP, DS, MOJOSHADER_TYPE_ANY),
INSTRUCTION(RSQ, DS, MOJOSHADER_TYPE_ANY),
INSTRUCTION(DP3, DSS, MOJOSHADER_TYPE_ANY),
INSTRUCTION(DP4, DSS, MOJOSHADER_TYPE_ANY),

0 comments on commit 3f05c8c

Please sign in to comment.