radv: make sure CP DMA is idle before executing secondary command buffers

Buffer copies with CP DMA aren't synced.

Fix dEQP-VK.memory.pipeline_barrier.transfer_src_transfer_dst.65536
flakes on GFX10+.

Fixes: e8707961 ("radv: prefer CP DMA for GTT buffer copies/clears on dGPUs due to slow PCIe")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <!10427>
34 jobs for !10427 with radv_fix_cp_dma_sync_secondary in 11 minutes and 59 seconds (queued for 4 seconds)
latest detached
Status Job ID Name Coverage
  Sanity
passed #9160862
sanity

00:00:11

 
  Container
passed #9160865
aarch64
arm_build

00:00:22

passed #9160866
windows shell 1809 mesa
windows_build_vs2019

00:00:09

passed #9160863
x86_build-base

00:00:21

passed #9160864
x86_test-base

00:00:21

 
  Container 2
passed #9160871
android_build

00:00:20

passed #9160868
i386_build

00:00:20

passed #9160874
kernel+rootfs_amd64

00:00:18

passed #9160875
aarch64
kernel+rootfs_arm64

00:01:11

passed #9160876
aarch64
kernel+rootfs_armhf

00:00:10

passed #9160869
ppc64el_build

00:00:21

passed #9160870
s390x_build

00:00:32

passed #9160867
x86_build

00:00:27

passed #9160872
x86_test-gl

00:00:20

passed #9160873
x86_test-vk

00:00:32

 
  Meson X86 64
passed #9160882
meson-clang

00:08:58

passed #9160883
meson-clover

00:02:09

passed #9160879
meson-clover-testing

00:01:26

passed #9160880
meson-gallium

00:02:39

passed #9160881
meson-release

00:03:03

passed #9160877
meson-testing

00:01:41

passed #9160878
meson-testing-asan

00:02:22

passed #9160884
meson-vulkan

00:01:50

 
  Build Misc
passed #9160885
arm_test

00:00:20

passed #9160886
meson-android

00:01:11

passed #9160888
aarch64
meson-arm64

00:01:29

passed #9160889
aarch64
meson-arm64-asan

00:05:01

passed #9160890
aarch64
meson-arm64-build-test

00:01:15

passed #9160887
aarch64
meson-armhf

00:01:43

passed #9160891
meson-i386

00:01:55

passed #9160894
meson-mingw32-x86_64

00:02:13

passed #9160893
meson-ppc64el

00:02:17

passed #9160892
kvm
meson-s390x

00:03:39

 
  Amd
passed #9160895
radv-fossils

00:09:09