From a218f42c88975f995a7a9e10fd35f898e995bc76 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 3 Apr 2008 05:50:53 -0400 Subject: [PATCH] Added state_BREAKP(). --HG-- branch : trunk --- mojoshader.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mojoshader.c b/mojoshader.c index 6151fc93..33d05222 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -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 @@ -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