nir/load_store_vectorizer: Clean up unit test swizzle assertions.
authorEric Anholt <eric@anholt.net>
Fri, 21 Aug 2020 20:37:07 +0000 (13:37 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Aug 2020 17:16:05 +0000 (17:16 +0000)
commita9019d14aed7a6f76fc764afd1e200c816df06b1
tree82cabd5fd0e485616faa263bfca1a41dae3f39da
parent2b2524099379b96a6dbeab037a25cbf5d71da7df
nir/load_store_vectorizer: Clean up unit test swizzle assertions.

They're hard to write and read, so put together a little helper to clean
up both the code and the gtest output on failure.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6431>
src/compiler/nir/tests/load_store_vectorizer_tests.cpp