nir/lower_tex: Use nir_steal_tex_src
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 7 Jun 2023 22:00:45 +0000 (18:00 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 12 Jun 2023 20:09:53 +0000 (20:09 +0000)
commitd1b94a11bd2b9084a840eba66126d5461ce06017
tree8391b1dc8b7364990d7dfb8a4ba9c30f617c6a70
parent36e779e4a9ab7266025e8720f51e965fcc454d94
nir/lower_tex: Use nir_steal_tex_src

The find-remove-use pattern is quite natural for texture lowering :)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23513>
src/compiler/nir/nir_lower_tex.c