Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
oDepth register doesn't have an index.
  • Loading branch information
icculus committed Dec 13, 2008
1 parent 63e810b commit 0e04a12
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mojoshader_assembler.c
Expand Up @@ -458,8 +458,6 @@ static int parse_register_name(Context *ctx, RegisterType *rtype, int *rnum)
regtype = REG_TYPE_CONSTBOOL;
else if (strcasecmp(t, "oC") == 0)
regtype = REG_TYPE_COLOROUT;
else if (strcasecmp(t, "oDepth") == 0)
regtype = REG_TYPE_DEPTHOUT;
else if (strcasecmp(t, "s") == 0)
regtype = REG_TYPE_SAMPLER;
else if (strcasecmp(t, "oD") == 0)
Expand All @@ -468,6 +466,11 @@ static int parse_register_name(Context *ctx, RegisterType *rtype, int *rnum)
regtype = REG_TYPE_LABEL;
else if (strcasecmp(t, "p") == 0)
regtype = REG_TYPE_PREDICATE;
else if (strcasecmp(t, "oDepth") == 0)
{
regtype = REG_TYPE_DEPTHOUT;
neednum = 0;
} // else if
else if (strcasecmp(t, "aL") == 0)
{
regtype = REG_TYPE_LOOP;
Expand Down

0 comments on commit 0e04a12

Please sign in to comment.