r600: for position invariant programs reading vert_pos is not always known at this...
authorAndre Maasikas <amaasikas@gmail.com>
Fri, 23 Oct 2009 11:25:09 +0000 (14:25 +0300)
committerAndre Maasikas <amaasikas@gmail.com>
Fri, 23 Oct 2009 14:16:23 +0000 (17:16 +0300)
src/mesa/drivers/dri/r600/r700_vertprog.c

index c84b0ac05978c54fdc3db10f5d04b3e062946159..ffc6068bd88cbbf12076ced3ed4272b7a9b01c0c 100644 (file)
@@ -515,6 +515,11 @@ void r700SetVertexFormat(GLcontext *ctx, const struct gl_client_array *arrays[],
     unsigned int unBit = mesa_vp->Base.InputsRead;
     context->nNumActiveAos = 0;
 
+    if (mesa_vp->IsPositionInvariant)
+    {
+        unBit |= VERT_BIT_POS;
+    }
+
     while(unBit) 
     {
         if(unBit & 1)