diff options
author | Ian Romanick <[email protected]> | 2017-10-31 23:37:14 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2017-11-08 18:37:29 -0800 |
commit | ef1ca06ce89cba03fcb30f34c47808569517957d (patch) | |
tree | bb81d1a725197f032683b8f14ea7978a02b09263 /src/compiler/glsl/test_optpass.cpp | |
parent | c858abb14f8e96fca880d1ae85874f9c084397b7 (diff) |
glsl: Combine nop-swizzle optimization with swizzle-swizzle optimization
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: <[email protected]>
Diffstat (limited to 'src/compiler/glsl/test_optpass.cpp')
-rw-r--r-- | src/compiler/glsl/test_optpass.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/compiler/glsl/test_optpass.cpp b/src/compiler/glsl/test_optpass.cpp index c6e97888f69..5fd1b2b6757 100644 --- a/src/compiler/glsl/test_optpass.cpp +++ b/src/compiler/glsl/test_optpass.cpp @@ -102,12 +102,10 @@ do_optimization(struct exec_list *ir, const char *optimization, return lower_if_to_cond_assign(MESA_SHADER_VERTEX, ir, int_0); } else if (strcmp(optimization, "do_mat_op_to_vec") == 0) { return do_mat_op_to_vec(ir); - } else if (strcmp(optimization, "do_noop_swizzle") == 0) { - return do_noop_swizzle(ir); + } else if (strcmp(optimization, "optimize_swizzles") == 0) { + return optimize_swizzles(ir); } else if (strcmp(optimization, "do_structure_splitting") == 0) { return do_structure_splitting(ir); - } else if (strcmp(optimization, "do_swizzle_swizzle") == 0) { - return do_swizzle_swizzle(ir); } else if (strcmp(optimization, "do_tree_grafting") == 0) { return do_tree_grafting(ir); } else if (strcmp(optimization, "do_vec_index_to_cond_assign") == 0) { |