nir: Add new rules to optimize NOOP pack/unpack pairs
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 19 Jun 2020 15:24:44 +0000 (17:24 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 29 Jun 2020 07:18:26 +0000 (09:18 +0200)
commitcff418cc4caba78117986a31ce3852f2c137a95b
treea6b79825193be755db8e1cd18360b75aae0b3fdc
parent237d72841805a6964b8ebef17c044020e34b1141
nir: Add new rules to optimize NOOP pack/unpack pairs

nir_load_store_vectorize_test.ssbo_load_adjacent_32_32_64_64 expectations
need to be fixed accordingly.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5589>
src/compiler/nir/nir_opt_algebraic.py
src/compiler/nir/tests/load_store_vectorizer_tests.cpp