Work on destination modifiers in arb1 profile. trunk
authorRyan C. Gordon <icculus@icculus.org>
Sun, 25 May 2008 10:17:55 -0400
branchtrunk
changeset 324 0626247c6263
parent 323 b60c88ec8182
child 325 f8f3c27644b9
Work on destination modifiers in arb1 profile.
mojoshader.c
--- a/mojoshader.c	Sun May 25 03:35:38 2008 -0400
+++ b/mojoshader.c	Sun May 25 10:17:55 2008 -0400
@@ -3448,13 +3448,13 @@
         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" : "";
-
-    if (arg->result_mod != 0x0)
+    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 & MOD_CENTROID)
     {
-        fail(ctx, "dest register modifiers currently unsupported in arb1");
+        fail(ctx, "dest register MOD_CENTROID currently unsupported in arb1");
         return "";
     } // if