Skip to content

Commit

Permalink
Added more fails to GLSL profile.
Browse files Browse the repository at this point in the history
...so I know to come back to this unimplemented stuff later.

--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 21, 2008
1 parent 2705dfe commit 72f36cf
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions mojoshader.c
Expand Up @@ -1651,15 +1651,14 @@ static const char *make_GLSL_destarg_assign(Context *ctx, const int idx,
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);
Expand All @@ -1683,11 +1682,6 @@ static const char *make_GLSL_destarg_assign(Context *ctx, const int idx,
} // 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,
Expand Down

0 comments on commit 72f36cf

Please sign in to comment.