intel/fs: Choose memory message type based on bit size
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 26 Mar 2020 22:06:52 +0000 (17:06 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Apr 2020 20:26:54 +0000 (20:26 +0000)
commitc6439792287f11f25cb2b62d699f52daefe54a44
treecb34945fca6231032e55321b720e5cf05a928e19
parent6e7645347288c7dd8a4b95d69a4617278aa7b7c3
intel/fs: Choose memory message type based on bit size

Thanks to the NIR vectorizing pass, we're about to see alignments that
are higher than the bit size.  Previously, we could use either and we
just happened to choose alignment (probably the wrong choice) so it's
harmless to switch to detecting based on bit size.  This commit changes
things to take both into account which is more accurate to what the
messages we're using do.  We also beef up the asserts and make them more
consistent, more accurate, and more complete.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4367>
src/intel/compiler/brw_fs_nir.cpp