nir/lower_tex: do not stumble on 16-bit inputs
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 7 Apr 2021 17:29:40 +0000 (19:29 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 19 Apr 2021 14:28:05 +0000 (14:28 +0000)
commit788698383528c3fa3265da476b9dc255353f8bc2
tree9c9d024ed1c86ae9c823856b498ebacc247decbd
parentbd1b0c326623317fcd15816d8fbca0d20a4c5ff3
nir/lower_tex: do not stumble on 16-bit inputs

If a has been lowered to float16 here, then we end up trying to
construct a vector of mixed precision, which the validator asserts
about.

So let's make sure we use the same type for all arguments.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10201>
src/compiler/nir/nir_lower_tex.c