freedreno: Break out of "should we free the entry" loop once we've freed.

Fixes a use-after-free of the state on the next iteration when it was
probably just destroyed.

Fixes: 6de01faa ("freedreno/a6xx: invalidate tex state cache entries on rebind")
Part-of: <!7695>
83 jobs for !7695 with asan in 17 minutes and 56 seconds (queued for 6 seconds)
detached
Status Job ID Name Coverage
  Sanity
passed #5933543
sanity

00:00:30

 
  Container
passed #5933551
aarch64
arm_build

00:00:19

passed #5933553
arm_test-base

00:00:19

passed #5933555
windows shell 1809 mesa
windows_build_vs2019

00:00:09

passed #5933545
x86_build-base

00:00:22

passed #5933549
x86_build_old

00:00:18

passed #5933547
x86_test-base

00:00:19

 
  Container 2
passed #5933572
android_build

00:00:14

passed #5933577
arm64_test

00:00:14

passed #5933567
i386_build

00:00:11

passed #5933559
kernel+rootfs_amd64

00:00:14

passed #5933561
aarch64
kernel+rootfs_arm64

00:01:36

passed #5933563
aarch64
kernel+rootfs_armhf

00:00:20

passed #5933568
ppc64el_build

00:00:14

passed #5933570
s390x_build

00:00:12

passed #5933565
x86_build

00:00:13

passed #5933573
x86_test-gl

00:00:14

passed #5933575
x86_test-vk

00:00:12

 
  Meson X86 64
passed #5933587
meson-clang

00:02:50

passed #5933585
meson-classic

00:01:55

passed #5933589
meson-clover

00:03:22

passed #5933580
meson-clover-testing

00:01:58

passed #5933582
meson-gallium

00:03:42

passed #5933583
meson-release

00:01:57

passed #5933578
meson-testing

00:03:02

passed #5933590
meson-vulkan

00:01:47

 
  Scons
passed #5933592
scons-win64

00:01:52

 
  Meson Misc
passed #5933594
meson-android

00:01:53

passed #5933598
aarch64
meson-arm64

00:01:36

passed #5933600
aarch64
meson-arm64-build-test

00:01:24

passed #5933596
aarch64
meson-armhf

00:01:20

passed #5933604
meson-i386

00:00:50

passed #5933610
meson-mingw32-x86_64

00:04:26

passed #5933608
kvm
meson-ppc64el

00:01:59

passed #5933606
kvm
meson-s390x

00:03:58

passed #5933601
windows docker 1809 mesa
meson-windows-vs2019

00:03:51

 
  Llvmpipe
passed #5933619
llvmpipe-gles2

00:02:17

passed #5933620
llvmpipe-traces

00:03:30

passed #5933612
piglit-cl

00:02:38

passed #5933615
piglit-glslparser

00:03:58

passed #5933613
piglit-quick_gl

00:06:14

passed #5933617
piglit-quick_shader

00:06:27

 
  Softpipe
passed #5933630
softpipe-gl

00:01:02

passed #5933622
softpipe-gles2

00:01:42

passed #5933624
softpipe-gles3

00:06:20

passed #5933626
softpipe-gles31 1/2

00:05:05

passed #5933628
softpipe-gles31 2/2

00:05:38

 
  Freedreno
passed #5933652
google-freedreno-db410c
arm64_a306_gles2

00:06:20

passed #5933654
google-freedreno-db410c
arm64_a306_gles3

00:06:19

passed #5933655
google-freedreno-db410c
arm64_a306_gles3_options

00:03:57

passed #5933656
google-freedreno-db820c
arm64_a530_gles2 1/2

00:06:59

passed #5933657
google-freedreno-db820c
arm64_a530_gles2 2/2

00:07:07

passed #5933658
google-freedreno-db820c
arm64_a530_gles3

00:03:46

passed #5933659
google-freedreno-db820c
arm64_a530_gles31

00:06:06

passed #5933642
google-freedreno-cheza
arm64_a630_gl

00:00:58

passed #5933632
google-freedreno-cheza
arm64_a630_gles2

00:01:55

passed #5933637
google-freedreno-cheza
arm64_a630_gles3

00:06:51

passed #5933634
google-freedreno-cheza
arm64_a630_gles31

00:05:14

passed #5933644
google-freedreno-cheza
arm64_a630_gles_others

00:03:32

passed #5933639
google-freedreno-cheza
arm64_a630_traces

00:07:06

passed #5933646
google-freedreno-cheza
arm64_a630_vk 1/2

00:07:38

passed #5933648
google-freedreno-cheza
arm64_a630_vk 2/2

00:08:38

passed #5933650
google-freedreno-cheza
arm64_a630_vk_sysmem

00:02:28

 
  Panfrost
passed #5933665
mesa-ci-aarch64-lava-collabora
panfrost-g52-gles2:arm64

00:03:59

passed #5933660
mesa-ci-aarch64-lava-collabora
panfrost-t720-gles2:arm64

00:07:52

passed #5933661
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles2:arm64

00:04:00

passed #5933662
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64 1/2

00:05:53

passed #5933663
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64 2/2

00:06:04

passed #5933664
mesa-ci-aarch64-lava-collabora
panfrost-t860-traces:arm64

00:06:26

 
  Radv
passed #5933666
radv-fossils

00:09:44

 
  Virgl
passed #5933671
virgl-gl30-on-gl

00:01:41

passed #5933672
virgl-gl31-on-gl

00:02:01

passed #5933673
virgl-gl32-on-gl

00:02:12

passed #5933667
virgl-gles2-on-gl

00:02:19

passed #5933669
virgl-gles31-on-gl 1/2

00:05:33

passed #5933670
virgl-gles31-on-gl 2/2

00:05:51

passed #5933668
virgl-gles3-on-gl

00:05:08

passed #5933674
virgl-traces

00:00:42

 
  Radeonsi
passed #5933675
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles2:amd64

00:06:12

passed #5933677
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles31:amd64

00:08:33

passed #5933676
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles3:amd64

00:08:07

passed #5933678
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-traces:amd64

00:13:38

 
  D3d12
passed #5933679
windows docker 1809 mesa
test-d3d12-windows

00:03:30