Skip to content

Commit

Permalink
Added state_BREAKP().
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 3, 2008
1 parent 8a18c44 commit a218f42
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mojoshader.c
Expand Up @@ -2646,6 +2646,13 @@ static void state_ENDLOOP(Context *ctx)
ctx->loops--;
} // state_ENDLOOP

static void state_BREAKP(Context *ctx)
{
const RegisterType regtype = ctx->source_args[0].regtype;
if (regtype != REGISTER_TYPE_PREDICATE)
fail(ctx, "BREAKP argument isn't predicate register");
} // state_BREAKP


// Lookup table for instruction opcodes...
typedef struct
Expand Down Expand Up @@ -2771,7 +2778,7 @@ static const Instruction instructions[] =
INSTRUCTION(TEXLDD, 5, DSSSS, MOJOSHADER_TYPE_ANY),
INSTRUCTION(SETP, 3, DSS, MOJOSHADER_TYPE_ANY),
INSTRUCTION(TEXLDL, 3, DSS, MOJOSHADER_TYPE_ANY),
INSTRUCTION(BREAKP, 1, S, MOJOSHADER_TYPE_ANY), // src
INSTRUCTION_STATE(BREAKP, 1, S, MOJOSHADER_TYPE_ANY),

#undef INSTRUCTION
#undef INSTRUCTION_STATE
Expand Down

0 comments on commit a218f42

Please sign in to comment.