Skip to content

Commit

Permalink
SRCMOD_NOT apparently is allowed in SM3 for predicate registers...?!
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 10, 2008
1 parent 3860228 commit 64f6f4a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mojoshader.c
Expand Up @@ -5284,11 +5284,18 @@ static int parse_source_token(Context *ctx, SourceArgInfo *info)
case SRCMOD_X2:
case SRCMOD_DZ:
case SRCMOD_DW:
case SRCMOD_NOT:
if (shader_version_atleast(ctx, 2, 0))
return fail(ctx, "illegal source mod for this Shader Model.");
break;

case SRCMOD_NOT: // !!! FIXME: I _think_ this is right...
if (shader_version_atleast(ctx, 2, 0))
{
if (info->regtype != REG_TYPE_PREDICATE)
return fail(ctx, "NOT only allowed on predicate register.");
} // if
break;

default:
return fail(ctx, "Unknown source modifier");
} // switch
Expand Down

0 comments on commit 64f6f4a

Please sign in to comment.