r600: FRAG_ATTRIB_WPOS and FRAG_ATTRIB_FOGC appear to be supported.
authorRobert Noland <rnoland@2hip.net>
Wed, 14 Oct 2009 19:04:24 +0000 (14:04 -0500)
committerAlex Deucher <alexdeucher@gmail.com>
Thu, 15 Oct 2009 15:29:52 +0000 (11:29 -0400)
Report unsupported attributes while I'm here.

Signed-off-by: Robert Noland <rnoland@2hip.net>
src/mesa/drivers/dri/r600/r700_assembler.c

index 25b27cd82977027fb37df1b79fad24020a731f24..a683008746d703ab6681ed4284eebb9fde834b36 100644 (file)
@@ -1180,8 +1180,10 @@ GLboolean tex_src(r700_AssemblerBase *pAsm)
         case PROGRAM_INPUT:
             switch (pILInst->SrcReg[0].Index)
             {
+                case FRAG_ATTRIB_WPOS:
                 case FRAG_ATTRIB_COL0:
                 case FRAG_ATTRIB_COL1:
+                case FRAG_ATTRIB_FOGC:
                 case FRAG_ATTRIB_TEX0:
                 case FRAG_ATTRIB_TEX1:
                 case FRAG_ATTRIB_TEX2:
@@ -1194,7 +1196,16 @@ GLboolean tex_src(r700_AssemblerBase *pAsm)
                     pAsm->S[0].src.reg   =
                         pAsm->uiFP_AttributeMap[pILInst->SrcReg[0].Index];
                     pAsm->S[0].src.rtype = SRC_REG_INPUT;
-                break;
+                    break;
+                case FRAG_ATTRIB_FACE:
+                    fprintf(stderr, "FRAG_ATTRIB_FACE unsupported\n");
+                    break;
+                case FRAG_ATTRIB_PNTC:
+                    fprintf(stderr, "FRAG_ATTRIB_PNTC unsupported\n");
+                    break;
+                case FRAG_ATTRIB_VAR0:
+                    fprintf(stderr, "FRAG_ATTRIB_VAR0 unsupported\n");
+                    break;
             }
         break;
         }