st/mesa: set take_index_buffer_ownership to skip an atomic in u_threaded

This reduces overhead by skipping the atomic, which is slow on AMD Zen.
It uses the same mechanism as vertex buffers.

Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Status Job ID Name Coverage
  Sanity
passed #6835752
sanity

00:00:09

 
  Container
manual #6835755
aarch64 manual
arm_build
manual #6835756
manual
arm_test-base
manual #6835757
windows shell 1809 mesa manual
windows_build_vs2019
manual #6835753
manual
x86_build-base
manual #6835754
manual
x86_test-base
 
  Container 2
created #6835765
android_build
created #6835768
arm64_test
created #6835769
armhf_test
created #6835762
i386_build
created #6835758
kernel+rootfs_amd64
created #6835759
aarch64
kernel+rootfs_arm64
created #6835760
aarch64
kernel+rootfs_armhf
created #6835763
ppc64el_build
created #6835764
s390x_build
created #6835761
x86_build
created #6835766
x86_test-gl
created #6835767
x86_test-vk
 
  Meson X86 64
created #6835775
meson-clang
created #6835776
meson-clover
created #6835772
meson-clover-testing
created #6835773
meson-gallium
created #6835774
meson-release
created #6835770
meson-testing
created #6835771
meson-testing-asan
created #6835777
meson-vulkan
 
  Build Misc
created #6835778
meson-android
created #6835780
aarch64
meson-arm64
created #6835781
aarch64
meson-arm64-build-test
created #6835779
aarch64
meson-armhf
created #6835784
meson-i386
created #6835787
meson-mingw32-x86_64
created #6835786
kvm
meson-ppc64el
created #6835785
kvm
meson-s390x
created #6835782
windows docker 1809 mesa
meson-windows-vs2019
created #6835783
allowed to fail
scons-win64
 
  Amd
created #6835788
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles2:amd64
created #6835790
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles31:amd64
created #6835789
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles3:amd64
created #6835791
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-traces:amd64
created #6835792
radv-fossils
 
  Arm
created #6835798
mesa-ci-aarch64-lava-collabora
panfrost-g52-gles2:arm64
created #6835799
mesa-ci-aarch64-lava-collabora
panfrost-g52-gles3:arm64
created #6835793
mesa-ci-aarch64-lava-collabora
panfrost-t720-gles2:arm64
created #6835794
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles2:arm64
created #6835795
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64 1/2
created #6835796
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64 2/2
created #6835797
mesa-ci-aarch64-lava-collabora
panfrost-t860-traces:arm64
 
  Freedreno
created #6835810
google-freedreno-db410c
arm64_a306_gles2
created #6835811
google-freedreno-db410c
arm64_a306_gles3
created #6835812
google-freedreno-db410c
arm64_a306_gles3_options
created #6835813
google-freedreno-db820c
arm64_a530_gles2 1/2
created #6835814
google-freedreno-db820c
arm64_a530_gles2 2/2
created #6835815
google-freedreno-db820c
arm64_a530_gles3
created #6835816
google-freedreno-db820c
arm64_a530_gles31
created #6835817
google-freedreno-db820c
arm64_a530_piglit_shader
created #6835804
google-freedreno-cheza
arm64_a630_gl
created #6835801
google-freedreno-cheza
arm64_a630_gles2
created #6835803
google-freedreno-cheza
arm64_a630_gles3
created #6835802
google-freedreno-cheza
arm64_a630_gles31
created #6835805
google-freedreno-cheza
arm64_a630_gles_others
created #6835809
google-freedreno-cheza
arm64_a630_piglit_shader
created #6835800
google-freedreno-cheza
arm64-a630-traces
created #6835806
google-freedreno-cheza
arm64_a630_vk 1/2
created #6835807
google-freedreno-cheza
arm64_a630_vk 2/2
created #6835808
google-freedreno-cheza
arm64_a630_vk_sysmem
 
  Raspberrypi
created #6835818
igalia-rpi3
vc4-rpi3-gles2:armhf 1/4
created #6835819
igalia-rpi3
vc4-rpi3-gles2:armhf 2/4
created #6835820
igalia-rpi3
vc4-rpi3-gles2:armhf 3/4
created #6835821
igalia-rpi3
vc4-rpi3-gles2:armhf 4/4
 
  Software Renderer
created #6835834
lavapipe-vk
created #6835827
llvmpipe-gles2
created #6835822
llvmpipe-piglit-cl
created #6835824
llvmpipe-piglit-glslparser
created #6835823
llvmpipe-piglit-quick_gl
created #6835825
llvmpipe-piglit-quick_shader
created #6835826
llvmpipe-traces
created #6835833
softpipe-gl
created #6835828
softpipe-gles2
created #6835829
softpipe-gles3
created #6835830
softpipe-gles31 1/2
created #6835831
softpipe-gles31 2/2
created #6835832
softpipe-piglit-quick
 
  Layered Backends
created #6835835
windows docker 1809 mesa
test-d3d12-windows
created #6835841
virgl-gl30-on-gl
created #6835842
virgl-gl31-on-gl
created #6835843
virgl-gl32-on-gl
created #6835837
virgl-gles2-on-gl
created #6835839
virgl-gles31-on-gl 1/2
created #6835840
virgl-gles31-on-gl 2/2
created #6835838
virgl-gles3-on-gl
created #6835836
virgl-traces
 
  Deploy
manual #6835844
manual
test-docs-mr