From 6e9ba49c8659f7cbef4cad789d98bb4eed63c4b6 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 25 May 2008 10:17:55 -0400 Subject: [PATCH] Work on destination modifiers in arb1 profile. --HG-- branch : trunk --- mojoshader.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mojoshader.c b/mojoshader.c index e7cac67a..d35b3616 100644 --- a/mojoshader.c +++ b/mojoshader.c @@ -3448,13 +3448,13 @@ static const char *make_ARB1_destarg_string(Context *ctx) case 0xF: result_shift_str = "_d2"; break; } // switch - const char *sat_str = (arg->result_mod & MOD_SATURATE) ? "_sat" : ""; - const char *pp_str = (arg->result_mod & MOD_PP) ? "_pp" : ""; - const char *cent_str = (arg->result_mod & MOD_CENTROID) ? "_centroid" : ""; + const char *sat_str = (arg->result_mod & MOD_SATURATE) ? "_SAT" : ""; + const char *pp_str = ""; // no partial precision, but that's okay. + const char *cent_str = ""; - if (arg->result_mod != 0x0) + if (arg->result_mod & MOD_CENTROID) { - fail(ctx, "dest register modifiers currently unsupported in arb1"); + fail(ctx, "dest register MOD_CENTROID currently unsupported in arb1"); return ""; } // if