Mesa (master): r600: fix dst reg indexing for real

Alex Deucher agd5f at kemper.freedesktop.org
Tue Jul 21 21:56:48 UTC 2009


Module: Mesa
Branch: master
Commit: 5e3c62b550407111cf5f7a700abb18f947bd6903
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5e3c62b550407111cf5f7a700abb18f947bd6903

Author: Richard Li <richardradeon at gmail.com>
Date:   Tue Jul 21 17:56:06 2009 -0400

r600: fix dst reg indexing for real

This fixes segfaults in apps like teapot and tunnel

---

 src/mesa/drivers/dri/r600/r700_vertprog.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/mesa/drivers/dri/r600/r700_vertprog.c b/src/mesa/drivers/dri/r600/r700_vertprog.c
index cbfeaf0..172e6ee 100644
--- a/src/mesa/drivers/dri/r600/r700_vertprog.c
+++ b/src/mesa/drivers/dri/r600/r700_vertprog.c
@@ -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;




More information about the mesa-commit mailing list