nir: adjust nir_src_copy signature to take a nir_instr *
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 8 Sep 2021 15:41:00 +0000 (16:41 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 30 Aug 2022 18:21:44 +0000 (18:21 +0000)
commit69ba1c4d596a453530553b8b004a157d8c7292d7
tree92efc9825156008df5bde67f26ba5818dcfc3896
parentaa2d6e020b138ebcf86ee091268dd5193babc832
nir: adjust nir_src_copy signature to take a nir_instr *

This is almost always a nir_instr and updating the src of a nir_if will
have to work slightly differently in the future.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Acked-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12910>
24 files changed:
src/amd/vulkan/radv_nir_lower_ycbcr_textures.c
src/compiler/glsl/glsl_to_nir.cpp
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_builtin_builder.c
src/compiler/nir/nir_deref.c
src/compiler/nir/nir_from_ssa.c
src/compiler/nir/nir_lower_atomics_to_ssbo.c
src/compiler/nir/nir_lower_indirect_derefs.c
src/compiler/nir/nir_lower_io.c
src/compiler/nir/nir_lower_locals_to_regs.c
src/compiler/nir/nir_lower_ssbo.c
src/compiler/nir/nir_lower_subgroups.c
src/compiler/nir/nir_lower_tex.c
src/compiler/nir/nir_opt_peephole_select.c
src/compiler/nir/nir_search.c
src/gallium/drivers/lima/ir/lima_nir_split_load_input.c
src/gallium/drivers/r600/sfn/tests/sfn_valuefactory_test.cpp
src/gallium/drivers/zink/zink_compiler.c
src/gallium/drivers/zink/zink_lower_cubemap_to_array.c
src/intel/vulkan/anv_nir_lower_ycbcr_textures.c
src/microsoft/compiler/dxil_nir_lower_int_cubemaps.c
src/microsoft/compiler/dxil_nir_lower_int_samplers.c
src/panfrost/midgard/midgard_errata_lod.c