anv: group as many command buffers into a single execbuf

When semaphores are not involved, try to batch things up as much as
possible across VkSubmitInfo and also batch command buffers within a
VkSubmitInfo.

v2: Reuse anv_cmd_buffer_is_chainable()

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <!2371>
35 jobs for !2371 with review/anv-primary-cmd-buffer-chaining in 7 minutes and 56 seconds (queued for 2 seconds)
latest detached
Status Job ID Name Coverage
  Sanity
passed #7637611
sanity

00:00:08

 
  Container
passed #7637614
aarch64
arm_build

00:00:15

passed #7637615
arm_test-base

00:00:16

passed #7637616
windows shell 1809 mesa
windows_build_vs2019

00:00:09

passed #7637612
x86_build-base

00:00:17

passed #7637613
x86_test-base

00:00:16

 
  Container 2
passed #7637624
android_build

00:00:22

passed #7637627
arm64_test

00:00:20

passed #7637628
armhf_test

00:00:20

passed #7637621
i386_build

00:00:18

passed #7637617
kernel+rootfs_amd64

00:00:24

passed #7637618
aarch64
kernel+rootfs_arm64

00:01:02

passed #7637619
aarch64
kernel+rootfs_armhf

00:00:11

passed #7637622
ppc64el_build

00:00:11

passed #7637623
s390x_build

00:00:20

passed #7637620
x86_build

00:00:16

passed #7637625
x86_test-gl

00:00:18

passed #7637626
x86_test-vk

00:00:12

 
  Meson X86 64
passed #7637634
meson-clang

00:02:11

passed #7637635
meson-clover

00:04:01

passed #7637631
meson-clover-testing

00:02:37

passed #7637632
gstreamer
meson-gallium

00:01:29

passed #7637633
meson-release

00:02:40

passed #7637629
meson-testing

00:02:39

passed #7637630
meson-testing-asan

00:07:10

passed #7637636
meson-vulkan

00:02:11

 
  Build Misc
passed #7637637
meson-android

00:01:27

passed #7637639
aarch64
meson-arm64

00:01:36

passed #7637640
aarch64
meson-arm64-asan

00:03:08

passed #7637641
aarch64
meson-arm64-build-test

00:03:13

passed #7637638
aarch64
meson-armhf

00:01:45

passed #7637642
meson-i386

00:02:31

passed #7637645
meson-mingw32-x86_64

00:02:40

passed #7637644
kvm
meson-ppc64el

00:02:42

passed #7637643
kvm
meson-s390x

00:03:16