diff options
author | Eric Anholt <[email protected]> | 2010-07-27 14:32:21 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-07-27 14:34:53 -0700 |
commit | 59c45e9e6cf80be149c6e5d94763e98312f49be2 (patch) | |
tree | eac6843fb9742953a98aee7c095eb6aa6ec96bb0 /src/glsl | |
parent | 54f583a206a15b1a92c547333adfae29ced796ef (diff) |
glsl2: Actually use the linked dead code eliminator.
I managed to revert the change from unlinked at some point while
cleaning up the changes. glsl-fs-raytrace-bug27060 drops from 389
instructions to 370.
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/linker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 06f2a8231a9..e7bc7000290 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -1262,7 +1262,7 @@ link_shaders(struct gl_shader_program *prog) progress = do_if_simplification(ir) || progress; progress = do_copy_propagation(ir) || progress; progress = do_dead_code_local(ir) || progress; - progress = do_dead_code_unlinked(ir) || progress; + progress = do_dead_code(ir) || progress; progress = do_constant_variable_unlinked(ir) || progress; progress = do_constant_folding(ir) || progress; progress = do_if_return(ir) || progress; |