r600: fix dst reg indexing for real

This fixes segfaults in apps like teapot and tunnel
This commit is contained in:
Richard Li
2009-07-21 17:56:06 -04:00
committed by Alex Deucher
parent 7edb2a9eef
commit 5e3c62b550
+5 -5
View 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;