glsl: Delete the vectorization opt pass.
authorEmma Anholt <emma@anholt.net>
Fri, 17 Dec 2021 20:41:10 +0000 (12:41 -0800)
committerEmma Anholt <emma@anholt.net>
Mon, 20 Dec 2021 22:47:57 +0000 (14:47 -0800)
commitc2ead6c9b56753bd1cf4bd12eaeb0d3f3530131c
treea419facb5253f80ec5e4a47fe05a2a7977c9ed34
parent8a21b2fda0958e88e6a709d9c1d5ee6bd345745f
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>
src/compiler/glsl/glsl_parser_extras.cpp
src/compiler/glsl/ir_optimization.h
src/compiler/glsl/meson.build
src/compiler/glsl/opt_vectorize.cpp [deleted file]