v3d: Update the TEXTURE_SHADER_STATE when there’s a new buf for a tex

When a texture is mapped with the DISCARD_WHOLE_RESOURCE flag set,
v3d_map_usage_prep will try to allocate a new buffer for the resource.
Previously, if the resource was used in a bound texture then nothing
would cause it to update the sampler view with the offset for the new
buffer. This commit just adds that in by looking at all sampler views
and calling v3d_create_texture_shader_state_bo for each one that
references this resource.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <!6914>
31 jobs for master
Status Job ID Name Coverage
  Container+Docs
manual #4827692
aarch64 manual
arm_build
manual #4827693
manual
arm_test-base
manual #4827689
manual
x86_build-base
manual #4827691
manual
x86_build_old
manual #4827690
manual
x86_test-base
 
  Container 2
created #4827703
arm64_test
created #4827698
i386_build
created #4827694
kernel+rootfs_amd64
created #4827695
aarch64
kernel+rootfs_arm64
created #4827696
aarch64
kernel+rootfs_armhf
created #4827699
ppc64el_build
created #4827700
s390x_build
created #4827697
x86_build
created #4827701
x86_test-gl
created #4827702
x86_test-vk
 
  Meson X86 64
created #4827708
meson-android
created #4827709
meson-clang
created #4827707
meson-classic
created #4827710
meson-clover
created #4827705
meson-gallium
created #4827706
meson-release
created #4827704
meson-testing
created #4827711
meson-vulkan
 
  Scons
created #4827712
allowed to fail
scons-win64
 
  Meson Misc
created #4827714
aarch64
meson-arm64
created #4827715
aarch64
meson-arm64-build-test
created #4827713
aarch64
meson-armhf
created #4827716
meson-i386
created #4827719
meson-mingw32-x86_64
created #4827718
kvm
meson-ppc64el
created #4827717
kvm
meson-s390x