nir/lower_io: Use b2b for shader and function temporaries
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 15 Jul 2020 19:09:06 +0000 (14:09 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jul 2020 23:43:35 +0000 (23:43 +0000)
commit4815ae51d72837b174e44acf70e41e464c2d1286
tree8e195865004c27aec9f50697b71e7affda47f89a
parent3a2975db987a6267e6938da6fe9f6628f2516ece
nir/lower_io: Use b2b for shader and function temporaries

This way we can avoid some unnecessary conversions because there's no
need to sanitize to 0/1 for scratch.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5927>
src/compiler/nir/nir_lower_io.c