r600: fix dst reg indexing for real
authorRichard Li <richardradeon@gmail.com>
Tue, 21 Jul 2009 21:56:06 +0000 (17:56 -0400)
committerAlex Deucher <alexdeucher@gmail.com>
Tue, 21 Jul 2009 21:56:06 +0000 (17:56 -0400)
This fixes segfaults in apps like teapot and tunnel

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

index cbfeaf071b434c65169ac20a8d295c13ee1bf3d0..172e6ee501ea798c6cbeaf34eed362273d1279cd 100644 (file)
@@ -86,11 +86,11 @@ unsigned int Map_Vertex_Output(r700_AssemblerBase       *pAsm,
        //}
 
        //TODO : dealing fog.
-       //unBit = 1 << VERT_RESULT_FOGC;
-       //if(mesa_vp->Base.OutputsWritten & unBit)
-       //{
-       //      pAsm->ucVP_OutputMap[VERT_RESULT_FOGC] = unTotal++;
-       //}
+       unBit = 1 << VERT_RESULT_FOGC;
+       if(mesa_vp->Base.OutputsWritten & unBit)
+       {
+               pAsm->ucVP_OutputMap[VERT_RESULT_FOGC] = unTotal++;
+       }
 
        //TODO : dealing point size.
        //unBit = 1 << VERT_RESULT_PSIZ;