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

Author: Brian Paul <[email protected]>
Date:   Tue Apr  7 11:10:27 2009 -0600

glsl: enable the new linear scan register allocator code

Seems to b working well enough to enable all the time.
Optimizations can be disabled with "export MESA_GLSL=nopt" if needed.

---

 src/mesa/shader/prog_optimize.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mesa/shader/prog_optimize.c b/src/mesa/shader/prog_optimize.c
index 458a69f..5f35dbf 100644
--- a/src/mesa/shader/prog_optimize.c
+++ b/src/mesa/shader/prog_optimize.c
@@ -803,11 +803,11 @@ _mesa_optimize_program(GLcontext *ctx, struct gl_program 
*program)
    if (1)
       _mesa_remove_dead_code(program);
 
-   if (0) /* not test much yet */
+   if (0) /* not tested much yet */
       _mesa_remove_extra_moves(program);
 
-   if (1)
+   if (0)
       _mesa_consolidate_registers(program);
-   else /*NEW*/
+   else
       _mesa_reallocate_registers(program);
 }

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

Reply via email to