nir: Add and use a nir_instr_init_src() helper
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Thu, 17 Aug 2023 21:16:10 +0000 (16:16 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 18 Aug 2023 01:00:15 +0000 (01:00 +0000)
commit267b4fb1b9ce19f4c64b39433e5cea44851aa651
treed6ff4000b42818b6094175df84609989a7b2b29c
parent9c8cb69c1585faf85829b7e233bb7617a60d6173
nir: Add and use a nir_instr_init_src() helper

This helper exists for a very tiny set of use-cases but it's better to
have the helper live in nir.c than hand-roll it elsewhere.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24729>
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_from_ssa.c