nir: add helper to copy const_index[]
authorRob Clark <robdclark@chromium.org>
Wed, 6 May 2020 20:35:51 +0000 (13:35 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 14 May 2020 03:24:45 +0000 (20:24 -0700)
commita506d49faecf06d5cd2fd2d049319d907b273b83
treea12a566be3b55798ec42a4ef02da120b27a66524
parent3d3cfea78b799af71012dcd6b84cc38a9d172e05
nir: add helper to copy const_index[]

It seems less brittle to not assume they are in the same order for src
and dst instructions.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/nir/nir.h
src/freedreno/ir3/ir3_nir_lower_io_offsets.c