anv: fix submission batching with perf queries

If we have 2 command buffers back to back, one with a query pool, one
without, we don't want to retain the second query pool value (NULL).

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 0a7224f3 ("anv: group as many command buffers into a single execbuf")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <!12107>
40 jobs for !12107 with review/anv-perf-fix in 17 minutes and 38 seconds (queued for 2 seconds)
latest detached
Status Job ID Name Coverage
  Sanity
passed sanity #12310546

00:00:19

 
  Container
passed debian/arm_build #12310549
aarch64

00:00:16

passed debian/x86_build-base #12310547

00:00:27

passed debian/x86_test-base #12310548

00:00:11

passed fedora/x86_build #12310550

00:00:26

passed windows_build_vs2019 #12310551
windows shell 1809 mesa

00:00:09

 
  Container 2
passed debian/android_build #12310556

00:00:14

passed debian/i386_build #12310553

00:00:29

passed debian/ppc64el_build #12310554

00:00:17

passed debian/s390x_build #12310555

00:01:08

passed debian/x86_build #12310552

00:00:25

passed debian/x86_test-gl #12310557

00:00:22

passed debian/x86_test-vk #12310558

00:00:13

passed kernel+rootfs_amd64 #12310559

00:00:25

passed kernel+rootfs_arm64 #12310560
aarch64

00:00:12

passed kernel+rootfs_armhf #12310561
aarch64

00:00:11

 
  Build X86 64
passed debian-clang #12310568

00:10:59

passed debian-clover #12310569

00:01:52

passed debian-clover-testing #12310564

00:01:02

passed debian-gallium #12310565

00:04:50

passed debian-release #12310566

00:02:29

passed debian-testing #12310562

00:01:17

passed debian-testing-asan #12310563

00:02:18

passed debian-vulkan #12310570

00:02:01

passed fedora-release #12310567

00:01:33

 
  Build Misc
passed debian-android #12310572

00:00:44

passed debian-arm64 #12310574
aarch64

00:02:29

passed debian-arm64-asan #12310575
aarch64

00:02:51

passed debian-arm64-build-test #12310576
aarch64

00:01:19

passed debian-armhf #12310573
aarch64

00:01:32

passed debian/arm_test #12310571

00:00:16

passed debian-i386 #12310577

00:01:09

passed debian-mingw32-x86_64 #12311226

00:00:59

failed debian-mingw32-x86_64 #12310578

00:04:14

 
  Intel
passed iris-apl-egl #12310582
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral

00:05:27

passed iris-apl-gles2 #12310579
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral

00:04:41

passed iris-apl-gles3 #12310580
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral

00:04:56

passed iris-apl-gles31 #12310581
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral

00:05:40

passed iris-apl-traces #12310583
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral

00:03:05

 
  Freedreno
passed a630-traces-restricted #12310584
google-freedreno-cheza

00:01:59