OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
439909a
)
glsl: enable the new linear scan register allocator code
author
Brian Paul
<brianp@vmware.com>
Tue, 7 Apr 2009 17:10:27 +0000
(11:10 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 7 Apr 2009 17:10:27 +0000
(11:10 -0600)
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
patch
|
blob
|
history
diff --git
a/src/mesa/shader/prog_optimize.c
b/src/mesa/shader/prog_optimize.c
index
458a69f
..
5f35dbf
100644
(file)
--- 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 test
ed
much yet */
_mesa_remove_extra_moves(program);
- if (
1
)
+ if (
0
)
_mesa_consolidate_registers(program);
- else
/*NEW*/
+ else
_mesa_reallocate_registers(program);
}