projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7edb2a9
)
r600: fix dst reg indexing for real
author
Richard Li
<richardradeon@gmail.com>
Tue, 21 Jul 2009 21:56:06 +0000
(17:56 -0400)
committer
Alex 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r600/r700_vertprog.c
b/src/mesa/drivers/dri/r600/r700_vertprog.c
index cbfeaf071b434c65169ac20a8d295c13ee1bf3d0..172e6ee501ea798c6cbeaf34eed362273d1279cd 100644
(file)
--- 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;