mojoshader.c
branchtrunk
changeset 160 cf53f7849036
parent 159 b288700f4c02
child 161 a0e1920ce909
--- a/mojoshader.c	Mon Apr 21 00:19:12 2008 -0400
+++ b/mojoshader.c	Mon Apr 21 01:00:04 2008 -0400
@@ -1651,15 +1651,14 @@
         return "";
     } // if
 
-    // !!! FIXME
-    if (ctx->predicated)
-    {
-        fail(ctx, "predicated instructions not yet supported in this profile.");
-        return "";
-    } // if
-
     int need_parens = 0;
     const DestArgInfo *arg = &ctx->dest_args[idx];
+
+    if (arg->result_mod & MOD_SATURATE) { fail(ctx, "unsupported"); return ""; } // !!! FIXME
+    if (arg->result_mod & MOD_PP) { fail(ctx, "unsupported"); return ""; } // !!! FIXME
+    if (arg->result_mod & MOD_CENTROID) { fail(ctx, "unsupported"); return ""; } // !!! FIXME
+    if (ctx->predicated) { fail(ctx, "unsupported"); return ""; } // !!! FIXME
+
     char *operation = get_scratch_buffer(ctx);
     va_list ap;
     va_start(ap, fmt);
@@ -1683,11 +1682,6 @@
     } // switch
     need_parens |= (result_shift_str[0] != '\0');
 
-// !!! FIXME
-//    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" : "";
-
 // !!! FIXME: use get_GLSL_destarg_varname() here?
     char regnum_str[16];
     const char *regtype_str = get_GLSL_register_string(ctx, arg->regtype,