summaryrefslogtreecommitdiff
path: root/src/glsl/linker.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-08-05 11:01:09 -0700
committerEric Anholt <eric@anholt.net>2010-08-05 12:56:03 -0700
commit7f7eaf0285d011f7cc7e1a63133184a50b24ecaa (patch)
treeaa08d5fccd9622a2b7a89851c5c9d2b86a902afb /src/glsl/linker.cpp
parentc314c8f2310fa0ac51b8953e139f9504e08eb48f (diff)
ir_structure_splitting: New pass to chop structures into their components.
This doesn't do anything if your structure goes through an uninlined function call or if whole-structure assignment occurs. As such, the impact is limited, at least until we do some global copy propagation to reduce whole-structure assignment.
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r--src/glsl/linker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index f9e24ca0f1..050116954a 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -1287,6 +1287,7 @@ link_shaders(struct gl_shader_program *prog)
progress = do_function_inlining(ir) || progress;
progress = do_dead_functions(ir) || progress;
+ progress = do_structure_splitting(ir) || progress;
progress = do_if_simplification(ir) || progress;
progress = do_copy_propagation(ir) || progress;
progress = do_dead_code_local(ir) || progress;