oDepth register doesn't have an index.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 13 Dec 2008 00:15:41 -0500
changeset 513 abd9c85ba168
parent 512 0089a5b5b502
child 514 ba913834b491
oDepth register doesn't have an index.
mojoshader_assembler.c
--- a/mojoshader_assembler.c	Fri Dec 12 05:06:07 2008 -0500
+++ b/mojoshader_assembler.c	Sat Dec 13 00:15:41 2008 -0500
@@ -458,8 +458,6 @@
         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)
@@ -468,6 +466,11 @@
         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;