freedreno/ir3: Leave the cursor alone during ir3_nir_try_propagate_bit_shift.
authorEric Anholt <eric@anholt.net>
Tue, 21 Apr 2020 00:14:53 +0000 (17:14 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 00:10:43 +0000 (00:10 +0000)
commit5387c271409dbfb12292feec2dcd61399bbb1a99
tree3d62657911b8f5ef0f7318ccbfa2c2d662f672b5
parente0a4d1c4e53f770d1e4f80f112e3d36b9f09a7c4
freedreno/ir3: Leave the cursor alone during ir3_nir_try_propagate_bit_shift.

Otherwise, we might end up inserting the nir_intrinsic_load_ubo_ir3()
after the non-offset src's definition, leading to nir_validate() failures.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4858>
src/freedreno/ir3/ir3_nir_lower_io_offsets.c