r600: support GL_SHORT attributes
authorAndre Maasikas <amaasikas@gmail.com>
Fri, 12 Feb 2010 14:16:56 +0000 (16:16 +0200)
committerAndre Maasikas <amaasikas@gmail.com>
Fri, 12 Feb 2010 14:23:49 +0000 (16:23 +0200)
normalized seems to work with this setting.

src/mesa/drivers/dri/r600/r700_chip.c

index e0be74935b9c5bac70de918db9003413785cf62d..a068cb604598c68204beb5ba50633f278cf5c834 100644 (file)
@@ -218,11 +218,11 @@ static void r700SetupVTXConstants(GLcontext  * ctx,
         SETfield(uSQ_VTX_CONSTANT_WORD2_0, SQ_NUM_FORMAT_NORM,
                     SQ_VTX_CONSTANT_WORD2_0__NUM_FORMAT_ALL_shift, SQ_VTX_CONSTANT_WORD2_0__NUM_FORMAT_ALL_mask);
     }
-    //else
-    //{
-    //    SETfield(uSQ_VTX_CONSTANT_WORD2_0, SQ_NUM_FORMAT_INT,
-       //             SQ_VTX_CONSTANT_WORD2_0__NUM_FORMAT_ALL_shift, SQ_VTX_CONSTANT_WORD2_0__NUM_FORMAT_ALL_mask);
-    //}
+    else
+    {
+        SETfield(uSQ_VTX_CONSTANT_WORD2_0, SQ_NUM_FORMAT_SCALED,
+                    SQ_VTX_CONSTANT_WORD2_0__NUM_FORMAT_ALL_shift, SQ_VTX_CONSTANT_WORD2_0__NUM_FORMAT_ALL_mask);
+    }
 
     if(1 == pStreamDesc->_signed)
     {