aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Li <[email protected]>2009-07-21 17:56:06 -0400
committerAlex Deucher <[email protected]>2009-07-21 17:56:06 -0400
commit5e3c62b550407111cf5f7a700abb18f947bd6903 (patch)
tree75cce1a84aa9bb455bebaf5d06646707f352133b /src
parent7edb2a9eef698c386042e6cead68ac516ec15616 (diff)
r600: fix dst reg indexing for real
This fixes segfaults in apps like teapot and tunnel
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r600/r700_vertprog.c10
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 cbfeaf071b4..172e6ee501e 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;