WIP! anv: Implement CPU-side BVH building with embree

This commit also adds an environment variable to force a CPU-side build
in vkCmdBuildAccelerationStructuresKHR.  This is useful for getting more
tests working because most tests assume GPU-side builds.  Also, when
running in simulation, a CPU-side build with Embree is likely to be much
faster than a GPU-side build with simulated compute shaders.  This, of
course, assumes that the data is already in the memory at the time that
vkCmdBuildAccelerationStructureKHR is called.  However, this is likely
true for most CTS tests and we can get more stuff running this way.

TODO: Take advantage of deferred operations
81 jobs for !7736 with wip/VK_KHR_acceleration_structure in 1 minute and 1 second (queued for 4 seconds)
latest detached
Status Job ID Name Coverage
  Container
manual #5761983
aarch64 manual
arm_build
manual #5761984
manual
arm_test-base
passed #5761985
git_archive

00:00:16

manual #5761980
manual
x86_build-base
manual #5761982
manual
x86_build_old
manual #5761981
manual
x86_test-base
 
  Container 2
created #5761993
android_build
created #5761996
arm64_test
created #5761990
i386_build
created #5761986
kernel+rootfs_amd64
created #5761987
aarch64
kernel+rootfs_arm64
created #5761988
aarch64
kernel+rootfs_armhf
created #5761991
ppc64el_build
created #5761992
s390x_build
created #5761989
x86_build
created #5761994
x86_test-gl
created #5761995
x86_test-vk
 
  Sanity
passed #5761997
check mr

00:00:44

 
  Meson X86 64
created #5762003
meson-clang
created #5762002
meson-classic
created #5762004
meson-clover
created #5761999
meson-clover-testing
created #5762000
meson-gallium
created #5762001
meson-release
created #5761998
meson-testing
created #5762005
meson-vulkan
 
  Scons
created #5762006
allowed to fail
scons-win64
 
  Meson Misc
created #5762007
meson-android
created #5762009
aarch64
meson-arm64
created #5762010
aarch64
meson-arm64-build-test
created #5762008
aarch64
meson-armhf
created #5762011
meson-i386
created #5762014
meson-mingw32-x86_64
created #5762013
kvm
meson-ppc64el
created #5762012
kvm
meson-s390x
 
  Llvmpipe
created #5762019
llvmpipe-gles2
created #5762020
llvmpipe-traces
created #5762015
piglit-cl
created #5762017
piglit-glslparser
created #5762016
piglit-quick_gl
created #5762018
piglit-quick_shader
 
  Softpipe
created #5762025
softpipe-gl
created #5762021
softpipe-gles2
created #5762022
softpipe-gles3
created #5762023
softpipe-gles31 1/2
created #5762024
softpipe-gles31 2/2
 
  Freedreno
created #5762035
google-freedreno-db410c
arm64_a306_gles2
created #5762036
google-freedreno-db410c
arm64_a306_gles3
created #5762037
google-freedreno-db410c
arm64_a306_gles3_options
created #5762038
google-freedreno-db820c
arm64_a530_gles2 1/2
created #5762039
google-freedreno-db820c
arm64_a530_gles2 2/2
created #5762040
google-freedreno-db820c
arm64_a530_gles3
created #5762041
google-freedreno-db820c
arm64_a530_gles31
created #5762030
google-freedreno-cheza
arm64_a630_gl
created #5762026
google-freedreno-cheza
arm64_a630_gles2
created #5762028
google-freedreno-cheza
arm64_a630_gles3
created #5762027
google-freedreno-cheza
arm64_a630_gles31
created #5762031
google-freedreno-cheza
arm64_a630_gles_others
created #5762029
google-freedreno-cheza
arm64_a630_traces
created #5762032
google-freedreno-cheza
arm64_a630_vk 1/2
created #5762033
google-freedreno-cheza
arm64_a630_vk 2/2
created #5762034
google-freedreno-cheza
arm64_a630_vk_sysmem
 
  Panfrost
created #5762047
mesa-ci-aarch64-lava-collabora
panfrost-g52-gles2:arm64
created #5762042
mesa-ci-aarch64-lava-collabora
panfrost-t720-gles2:arm64
created #5762043
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles2:arm64
created #5762044
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64 1/2
created #5762045
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64 2/2
created #5762046
mesa-ci-aarch64-lava-collabora
panfrost-t860-traces:arm64
 
  Radv
created #5762048
radv-fossils
 
  Virgl
created #5762053
virgl-gl30-on-gl
created #5762054
virgl-gl31-on-gl
created #5762055
virgl-gl32-on-gl
created #5762049
virgl-gles2-on-gl
created #5762051
virgl-gles31-on-gl 1/2
created #5762052
virgl-gles31-on-gl 2/2
created #5762050
virgl-gles3-on-gl
created #5762056
virgl-traces
 
  Radeonsi
created #5762057
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles2:amd64
created #5762059
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles31:amd64
created #5762058
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles3:amd64
created #5762060
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-traces:amd64