util/threaded_context: actually invalidate buffers if they aren't busy

checking whether the resource is busy doesn't invalidate the resource, it
just notifies whether it's busy. to drop existing data (which is likely just
zeroing the valid_buffer_range, but also potentially queuing barrier emission),
the invalidate hook needs to be called

Fixes: ec77a2d4 ("gallium/u_threaded: add callbacks and documentation for resource busy checking")
132 jobs for !10884 with tc-fix_busyness in 10 seconds (queued for 4 seconds)
latest detached
Status Name Job ID Coverage
  Sanity
passed sanity #9900050

00:00:10

 
  Container
manual arm_build #9900053
aarch64 manual
manual windows_build_vs2019 #9900054
windows shell 1809 mesa manual
manual x86_build-base #9900051
manual
manual x86_test-base #9900052
manual
 
  Container 2
created android_build #9900059
created i386_build #9900056
created kernel+rootfs_amd64 #9900062
created kernel+rootfs_arm64 #9900063
aarch64
created kernel+rootfs_armhf #9900064
aarch64
created ppc64el_build #9900057
created s390x_build #9900058
created x86_build #9900055
created x86_test-gl #9900060
created x86_test-vk #9900061
 
  Meson X86 64
created meson-clang #9900070
created meson-clover #9900071
created meson-clover-testing #9900067
created meson-gallium #9900068
created meson-release #9900069
created meson-testing #9900065
created meson-testing-asan #9900066
created meson-vulkan #9900072
 
  Build Misc
created arm_test #9900073
created meson-android #9900074
created meson-arm64 #9900076
aarch64
created meson-arm64-asan #9900077
aarch64
created meson-arm64-build-test #9900078
aarch64
created meson-armhf #9900075
aarch64
created meson-i386 #9900080
created meson-mingw32-x86_64 #9900083
created meson-ppc64el #9900082
created meson-s390x #9900081
kvm
created meson-windows-vs2019 #9900079
windows docker 1809 mesa
 
  Amd
created radeonsi-stoney-gles2:amd64 #9900084
mesa-ci-aarch64-lava-collabora
created radeonsi-stoney-gles31:amd64 1/2 #9900087
mesa-ci-aarch64-lava-collabora
created radeonsi-stoney-gles31:amd64 2/2 #9900088
mesa-ci-aarch64-lava-collabora
created radeonsi-stoney-gles3:amd64 1/2 #9900085
mesa-ci-aarch64-lava-collabora
created radeonsi-stoney-gles3:amd64 2/2 #9900086
mesa-ci-aarch64-lava-collabora
created radeonsi-stoney-piglit-gl:amd64 #9900090
mesa-ci-aarch64-lava-collabora
created radeonsi-stoney-traces:amd64 #9900089
mesa-ci-aarch64-lava-collabora
 
  Intel
created iris-amly-traces:amd64 #9900093
mesa-ci-aarch64-lava-collabora
created iris-apl-traces:amd64 #9900091
mesa-ci-aarch64-lava-collabora
created iris-glk-traces:amd64 #9900092
mesa-ci-aarch64-lava-collabora
 
  Arm
created panfrost-g52-gles2:arm64 #9900102
mesa-ci-aarch64-lava-collabora
created panfrost-g52-gles31:arm64 #9900105
mesa-ci-aarch64-lava-collabora
created panfrost-g52-gles3:arm64 1/2 #9900103
mesa-ci-aarch64-lava-collabora
created panfrost-g52-gles3:arm64 2/2 #9900104
mesa-ci-aarch64-lava-collabora
created panfrost-g72-gles2:arm64 #9900106
mesa-ci-aarch64-lava-collabora
created panfrost-g72-gles31:arm64 #9900109
mesa-ci-aarch64-lava-collabora
created panfrost-g72-gles3:arm64 1/2 #9900107
mesa-ci-aarch64-lava-collabora
created panfrost-g72-gles3:arm64 2/2 #9900108
mesa-ci-aarch64-lava-collabora
created panfrost-t720-gles2:arm64 #9900094
mesa-ci-aarch64-lava-collabora
created panfrost-t760-gles2:armhf #9900095
mesa-ci-aarch64-lava-collabora
created panfrost-t760-traces:armhf #9900096
mesa-ci-aarch64-lava-collabora
created panfrost-t860-gles2:arm64 #9900097
mesa-ci-aarch64-lava-collabora
created panfrost-t860-gles31:arm64 #9900100
mesa-ci-aarch64-lava-collabora
created panfrost-t860-gles3:arm64 1/2 #9900098
mesa-ci-aarch64-lava-collabora
created panfrost-t860-gles3:arm64 2/2 #9900099
mesa-ci-aarch64-lava-collabora
created panfrost-t860-traces:arm64 #9900101
mesa-ci-aarch64-lava-collabora
 
  Broadcom
created v3d-rpi4-gles2:armhf #9900120
igalia-rpi4
created v3d-rpi4-gles31:armhf 1/2 #9900114
igalia-rpi4
created v3d-rpi4-gles31:armhf 2/2 #9900115
igalia-rpi4
created v3d-rpi4-gles3:armhf 1/4 #9900116
igalia-rpi4
created v3d-rpi4-gles3:armhf 2/4 #9900117
igalia-rpi4
created v3d-rpi4-gles3:armhf 3/4 #9900118
igalia-rpi4
created v3d-rpi4-gles3:armhf 4/4 #9900119
igalia-rpi4
created vc4-rpi3-gles2:armhf 1/4 #9900110
igalia-rpi3
created vc4-rpi3-gles2:armhf 2/4 #9900111
igalia-rpi3
created vc4-rpi3-gles2:armhf 3/4 #9900112
igalia-rpi3
created vc4-rpi3-gles2:armhf 4/4 #9900113
igalia-rpi3
 
  Freedreno
created a306_gles2 #9900121
google-freedreno-db410c
created a306_gles3 1/3 #9900122
google-freedreno-db410c
created a306_gles3 2/3 #9900123
google-freedreno-db410c
created a306_gles3 3/3 #9900124
google-freedreno-db410c
created a306_gles3_options #9900125
google-freedreno-db410c
created a306-traces #9900126
google-freedreno-db410c
created a530_gles2 #9900127
google-freedreno-db820c
created a530_gles31 1/2 #9900130
google-freedreno-db820c
created a530_gles3 1/2 #9900128
google-freedreno-db820c
created a530_gles31 2/2 #9900131
google-freedreno-db820c
created a530_gles3 2/2 #9900129
google-freedreno-db820c
created a530_piglit_gl #9900132
google-freedreno-db820c
created a530_piglit_shader #9900133
google-freedreno-db820c
created a530-traces #9900134
google-freedreno-db820c
created a630_egl #9900139
google-freedreno-cheza
created a630_gl #9900138
google-freedreno-cheza
created a630_gles2 #9900135
google-freedreno-cheza
created a630_gles3 #9900137
google-freedreno-cheza
created a630_gles31 #9900136
google-freedreno-cheza
created a630_gles_others #9900140
google-freedreno-cheza
created a630_piglit #9900144
google-freedreno-cheza
created a630-traces #9900145
google-freedreno-cheza
created a630_vk 1/2 #9900141
google-freedreno-cheza
created a630_vk 2/2 #9900142
google-freedreno-cheza
created a630_vk_sysmem #9900143
google-freedreno-cheza
 
  Software Renderer
created lavapipe-nir-stress #9900168
created lavapipe-vk #9900167
created llvmpipe-egl #9900156
created llvmpipe-gl #9900154
created llvmpipe-gles2 #9900151
created llvmpipe-gles3 #9900152
created llvmpipe-gles31 #9900153
created llvmpipe-khr-gles2 #9900155
created llvmpipe-piglit-cl #9900146
created llvmpipe-piglit-glslparser #9900148
created llvmpipe-piglit-quick_gl #9900147
created llvmpipe-piglit-quick_shader #9900149
created llvmpipe-traces #9900150
created softpipe-asan-gles31 #9900164
created softpipe-gl #9900166
created softpipe-gles2 #9900157
created softpipe-gles3 #9900158
created softpipe-gles31 1/2 #9900159
created softpipe-gles31 2/2 #9900160
created softpipe-khr-gles2 #9900161
created softpipe-khr-gles3 #9900162
created softpipe-khr-gles31 #9900163
created softpipe-piglit-quick #9900165
 
  Layered Backends
created test-d3d12-windows #9900181
windows docker 1809 mesa
created virgl-gl30-on-gl #9900173
created virgl-gl31-on-gl #9900174
created virgl-gl32-on-gl #9900175
created virgl-gles2-on-gl #9900169
created virgl-gles31-on-gl 1/2 #9900171
created virgl-gles31-on-gl 2/2 #9900172
created virgl-gles3-on-gl #9900170
created virgl-traces #9900176
created zink-lvp-gl #9900180
created zink-lvp-gles2 #9900178
created zink-lvp-gles3 #9900179
created zink-piglit-quick_gl #9900177