nir/repair_ssa: More agressively insert deref casts

Instead of just handling broken derefs, also handle texture and
intrinsic instruction sources.  This fixes a new CTS test:

    dEQP-VK.graphicsfuzz.function-with-uniform-return

Fixes: 1005272a "nir/repair_ssa: Insert deref casts when needed"
Closes: #2832
Status Job ID Name Coverage
  Container
manual arm_build #2440096
aarch64 manual
manual arm_test #2440097
aarch64 manual
manual windows_build_vs2019 #2440098
windows shell 1809 mesa manual
manual x86_build #2440092
manual
manual x86_build_old #2440095
manual
manual x86_test-gl #2440093
manual
manual x86_test-vk #2440094
manual
 
  Meson X86 64
created meson-clang #2440102
created meson-classic #2440101
created meson-clover #2440103
created meson-clover-old-llvm #2440104
created meson-gallium #2440100
created meson-testing #2440099
created meson-vulkan #2440105
 
  Scons
created scons-win64 #2440106
allowed to fail
 
  Meson Misc
created meson-arm64 #2440108
aarch64
created meson-arm64-build-test #2440109
aarch64
created meson-armhf #2440107
aarch64
created meson-i386 #2440111
created meson-mingw32-x86_64 #2440114
created meson-ppc64el #2440113
kvm
created meson-s390x #2440112
kvm
created meson-windows-vs2019 #2440110
windows docker 1809 mesa
 
  Llvmpipe
created llvmpipe-gles2 #2440118
created llvmpipe-traces #2440119
created piglit-glslparser #2440116
created piglit-quick_gl #2440115
created piglit-quick_shader #2440117
 
  Softpipe
created softpipe-gles2 #2440120
created softpipe-gles31 1/4 #2440123
created softpipe-gles3 1/2 #2440121
created softpipe-gles31 2/4 #2440124
created softpipe-gles31 3/4 #2440125
created softpipe-gles31 4/4 #2440126
created softpipe-gles3 2/2 #2440122
 
  Freedreno
created arm64_a306_gles2 #2440130
google-freedreno-db410c
created arm64_a530_gles2 #2440131
google-freedreno-db820c
created arm64_a630_gles2 #2440127
mesa-cheza
created arm64_a630_gles3 #2440129
mesa-cheza
created arm64_a630_gles31 #2440128
mesa-cheza
 
  Panfrost
created panfrost-t720-gles2:arm64 #2440132
mesa-ci-aarch64-lava-collabora
created panfrost-t760-gles2:armhf #2440133
mesa-ci-aarch64-lava-collabora
created panfrost-t860-gles2:arm64 #2440134
mesa-ci-aarch64-lava-collabora
created panfrost-t860-gles3:arm64 #2440135
mesa-ci-aarch64-lava-collabora
 
  Radv
created radv-fossils #2440136
 
  Virgl
created virgl-gles2 #2440137
created virgl-gles3 #2440138
created virgl-gles31 #2440139
created virgl-traces #2440140