summaryrefslogtreecommitdiff
path: root/src/compiler/glsl/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorEmma Anholt <emma@anholt.net>2021-12-17 12:41:10 -0800
committerEmma Anholt <emma@anholt.net>2021-12-20 14:47:57 -0800
commitc2ead6c9b56753bd1cf4bd12eaeb0d3f3530131c (patch)
treea419facb5253f80ec5e4a47fe05a2a7977c9ed34 /src/compiler/glsl/glsl_parser_extras.cpp
parent8a21b2fda0958e88e6a709d9c1d5ee6bd345745f (diff)
glsl: Delete the vectorization opt pass.
Nothing uses it, and i965 was the last thing to. Even if I enable it for softpipe or crocus, it quickly causes NIR validation failures in shader-db from swizzles outside the bounds of vectors. Retire it in favor of nir_opt_vectorize(). Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14249>
Diffstat (limited to 'src/compiler/glsl/glsl_parser_extras.cpp')
-rw-r--r--src/compiler/glsl/glsl_parser_extras.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl_parser_extras.cpp
index 2495fbb7cf3..a2a4a37e5c6 100644
--- a/src/compiler/glsl/glsl_parser_extras.cpp
+++ b/src/compiler/glsl/glsl_parser_extras.cpp
@@ -2388,10 +2388,6 @@ do_common_optimization(exec_list *ir, bool linked,
if (options->OptimizeForAOS && !linked)
OPT(opt_flip_matrices, ir);
- if (linked && options->OptimizeForAOS) {
- OPT(do_vectorize, ir);
- }
-
if (linked)
OPT(do_dead_code, ir, uniform_locations_assigned);
else