summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Li <richardradeon@gmail.com>2009-11-24 12:16:39 -0500
committerRichard Li <richardradeon@gmail.com>2009-11-24 12:16:39 -0500
commitd4c2f53ca56beb8fe9289fb17c3f5fcc2cc7dc10 (patch)
tree5674d64d0174f06eff8aec5a238d10d314af552e
parent8bf4e5d6176b0efb93c11bcd14fa5d320088e2e3 (diff)
r600 : fix stack depth setting bug.
-rw-r--r--src/mesa/drivers/dri/r600/r700_assembler.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_assembler.c b/src/mesa/drivers/dri/r600/r700_assembler.c
index 8e57396a0d..0c16594adc 100644
--- a/src/mesa/drivers/dri/r600/r700_assembler.c
+++ b/src/mesa/drivers/dri/r600/r700_assembler.c
@@ -6503,14 +6503,14 @@ GLboolean RelocProgram(r700_AssemblerBase * pAsm)
};
}
- if(0 == pAsm->unSubArrayPointer)
+ if(pAsm->CALLSTACK[0].max > 0)
{
- return GL_TRUE;
+ pAsm->pR700Shader->uStackSize = ((pAsm->CALLSTACK[0].max + 3)>>2) + 2;
}
- if(pAsm->CALLSTACK[0].max > 0)
+ if(0 == pAsm->unSubArrayPointer)
{
- pAsm->pR700Shader->uStackSize = ((pAsm->CALLSTACK[0].max + 3)>>2) + 2;
+ return GL_TRUE;
}
unCFoffset = plstCFmain->uNumOfNode;