diff options
author | Brian Paul <brianp@vmware.com> | 2009-04-07 11:10:27 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-04-07 11:10:27 -0600 |
commit | 0f0e24f6ef9c3ea44eba21ed3678361dc6c2ae6f (patch) | |
tree | f46063ede3cf40b4c9a7c72fbf8800467e6f85c2 /src | |
parent | 439909a87d50723c2dba0ee1539467f1f4bf8bf0 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | 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 458a69f70b..5f35dbf128 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); } |