projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e60b306
)
glsl: call the program optimizer
author
Brian Paul
<brianp@vmware.com>
Fri, 6 Mar 2009 22:45:01 +0000
(15:45 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 6 Mar 2009 23:21:21 +0000
(16:21 -0700)
This still needs more testing bug glean and Mesa GLSL tests seem OK.
src/mesa/shader/slang/slang_compile.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_compile.c
b/src/mesa/shader/slang/slang_compile.c
index ab848579b7710da11b509f1f61130073fc8650e8..3f46bfd60df389f028262b21fc35bbd6963c0fb4 100644
(file)
--- a/
src/mesa/shader/slang/slang_compile.c
+++ b/
src/mesa/shader/slang/slang_compile.c
@@
-32,6
+32,7
@@
#include "main/context.h"
#include "shader/program.h"
#include "shader/programopt.h"
+#include "shader/prog_optimize.h"
#include "shader/prog_print.h"
#include "shader/prog_parameter.h"
#include "shader/grammar/grammar_mesa.h"
@@
-2796,6
+2797,10
@@
_slang_compile(GLcontext *ctx, struct gl_shader *shader)
shader->CompileStatus = success;
+ if (success) {
+ _mesa_optimize_program(ctx, shader->Program);
+ }
+
if (ctx->Shader.Flags & GLSL_LOG) {
_mesa_write_shader_to_file(shader);
}