WIP: fence: make thread safe

Signed-off-by: Karol Herbst <kherbst@redhat.com>
44 jobs for !10752 with nvc0_threading_upstream in 16 seconds (queued for 5 seconds)
detached
Status Job ID Name Coverage
  Sanity
passed #10320556
sanity

00:00:16

 
  Container
manual #10320559
aarch64 manual
arm_build
manual #10320560
windows shell 1809 mesa manual
windows_build_vs2019
manual #10320557
manual
x86_build-base
manual #10320558
manual
x86_test-base
 
  Container 2
created #10320565
android_build
created #10320562
i386_build
created #10320568
kernel+rootfs_amd64
created #10320569
aarch64
kernel+rootfs_arm64
created #10320570
aarch64
kernel+rootfs_armhf
created #10320563
ppc64el_build
created #10320564
s390x_build
created #10320561
x86_build
created #10320566
x86_test-gl
created #10320567
x86_test-vk
 
  Meson X86 64
created #10320576
meson-clang
created #10320577
meson-clover
created #10320573
meson-clover-testing
created #10320574
meson-gallium
created #10320575
meson-release
created #10320571
meson-testing
created #10320572
meson-testing-asan
created #10320578
meson-vulkan
 
  Build Misc
created #10320579
arm_test
created #10320580
meson-android
created #10320582
aarch64
meson-arm64
created #10320583
aarch64
meson-arm64-asan
created #10320584
aarch64
meson-arm64-build-test
created #10320581
aarch64
meson-armhf
created #10320585
meson-i386
created #10320587
meson-mingw32-x86_64
created #10320586
meson-ppc64el
 
  Intel
created #10320588
anholt-g33 manual
i915-g33-deqp
created #10320589
anholt-g33 manual
i915-g33-khr-deqp
created #10320590
anholt-g33 manual
i915-g33-piglit
created #10320591
anholt-g33 manual
i915-g33-traces
created #10320592
mesa-ci-aarch64-lava-collabora manual
iris-apl-gl
created #10320597
mesa-ci-aarch64-lava-collabora manual
iris-glk-egl
created #10320596
mesa-ci-aarch64-lava-collabora manual
iris-glk-gl
created #10320593
mesa-ci-aarch64-lava-collabora manual
iris-glk-gles2
created #10320594
mesa-ci-aarch64-lava-collabora manual
iris-glk-gles3
created #10320595
mesa-ci-aarch64-lava-collabora manual
iris-glk-gles31
created #10320598
mesa-ci-aarch64-lava-collabora manual
iris-glk-traces
 
  Freedreno
created #10320599
google-freedreno-db820c manual
a530_piglit_gl