nir: Remove 2nd argument from nir_before_src
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 6 Apr 2023 19:35:15 +0000 (15:35 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 7 Apr 2023 23:48:03 +0000 (23:48 +0000)
commitf3b420692b58850e26a43eb110bdbb3bdd1daef7
tree505ed6768d2217255fc329e9ac8ba39b3459f500
parent8505f0bd84d47b66f191536698d0bcaebd357f1c
nir: Remove 2nd argument from nir_before_src

We can now determine whether a nir_src is for an if without a sideband, so
simplify the function signature.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Suggested-by: Faith Ekstrand <faith@gfxstrand.net>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22343>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_bit_size.c
src/compiler/nir/nir_lower_bool_to_bitsize.c
src/compiler/nir/nir_opt_if.c
src/gallium/drivers/lima/ir/lima_nir_split_loads.c
src/microsoft/compiler/dxil_nir_tess.c