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

Author: Richard Li <[email protected]>
Date:   Tue Nov 24 12:16:39 2009 -0500

r600 : fix stack depth setting bug.

---

 src/mesa/drivers/dri/r600/r700_assembler.c |    8 ++++----
 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 8e57396..0c16594 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;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to