summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_compile.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-02-06 10:00:34 -0700
committerBrian Paul <brianp@vmware.com>2009-02-06 10:00:34 -0700
commitaafcc26642d5243944a1abb816c2657f644c0649 (patch)
treed01e92f80033b7db995581afcc1fdd45d572971d /src/mesa/shader/slang/slang_compile.c
parentb2e779988eeb595187933fe2122d86f8ccfe059c (diff)
Revert "mesa: meaningless whitespace change to see if git's working (ignore)"
This reverts commit b2e779988eeb595187933fe2122d86f8ccfe059c. I didn't mean to push this stuff yet. I'm having a bad git day...
Diffstat (limited to 'src/mesa/shader/slang/slang_compile.c')
-rw-r--r--src/mesa/shader/slang/slang_compile.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c
index 0c7881dd19..40460e0c7e 100644
--- a/src/mesa/shader/slang/slang_compile.c
+++ b/src/mesa/shader/slang/slang_compile.c
@@ -32,7 +32,6 @@
#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"
@@ -2795,22 +2794,11 @@ _slang_compile(GLcontext *ctx, struct gl_shader *shader)
_mesa_print_program(shader->Program);
#endif
- if (success) {
- if ((ctx->Shader.Flags & GLSL_NO_OPT) == 0) {
- if ((ctx->Shader.Flags & GLSL_OPT) || shader->Pragmas.Optimize) {
- /* apply program optimizations */
- _mesa_remove_extra_moves(shader->Program);
- _mesa_remove_dead_code(shader->Program);
- _mesa_consolidate_registers(shader->Program);
- }
- }
- }
-
shader->CompileStatus = success;
- if (ctx->Shader.Flags & GLSL_LOG) {
- _mesa_write_shader_to_file(shader);
- }
+#if 0
+ _mesa_write_shader_to_file(shader);
+#endif
return success;
}