virgl: honor winsys supplied metadata

To truly to do this correctly, we'll have to fix the discrepancy between
drm_virtgpu_3d_transfer_to_host and virtio_gpu_transfer_host_3d. However,
this is a good starting point.

Since virtio-gpu only supports self-import and export, this should be fine.
Let's only do WINSYS_HANDLE_TYPE_FD for this currently.

Reviewed by: Robert Tarasov <tutankhamen@chromium.org>
40 jobs for !2129 with winsys-import in 23 minutes and 29 seconds (queued for 3 seconds)
detached
Status Name Job ID Coverage
  Containers
passed debian-10 #691066

00:03:09

passed debian-9 #691067

00:00:23

passed test-container:arm64 #691068
aarch64

00:00:22

 
  Build
passed meson-arm64 #691071

00:05:47

passed meson-armhf #691070

00:04:50

passed meson-clang #691073

00:08:21

passed meson-clover #691076

00:06:56

passed meson-clover-old-llvm #691077

00:09:51

passed meson-i386 #691079

00:05:11

passed meson-main #691069

00:11:17

passed meson-swr-glvnd #691072

00:06:19

passed meson-vulkan #691078

00:03:53

passed scons #691080

00:09:59

passed scons-old-llvm #691081

00:18:21

passed scons-swr #691074

00:05:58

passed scons-win64 #691075

00:07:13

 
  Test
passed arm64_a306_gles2 1/4 #691102
db410c

00:09:50

passed arm64_a306_gles2 2/4 #691103
db410c

00:13:14

passed arm64_a306_gles2 3/4 #691104
db410c

00:09:45

passed arm64_a306_gles2 4/4 #691105
db410c

00:04:36

passed arm64_a630_gles2 #691091
mesa-cheza

00:04:53

passed arm64_a630_gles31 1/4 #691092
mesa-cheza

00:06:49

passed arm64_a630_gles31 2/4 #691093
mesa-cheza

00:07:31

passed arm64_a630_gles31 3/4 #691094
mesa-cheza

00:07:53

passed arm64_a630_gles31 4/4 #691095
mesa-cheza

00:07:04

passed arm64_a630_gles3 1/6 #691096
mesa-cheza

00:05:06

passed arm64_a630_gles3 2/6 #691097
mesa-cheza

00:04:49

passed arm64_a630_gles3 3/6 #691098
mesa-cheza

00:04:04

passed arm64_a630_gles3 4/6 #691099
mesa-cheza

00:04:10

passed arm64_a630_gles3 5/6 #691100
mesa-cheza

00:04:16

passed arm64_a630_gles3 6/6 #691101
mesa-cheza

00:04:04

passed test-llvmpipe-gles2 1/4 #691082

00:03:33

passed test-llvmpipe-gles2 2/4 #691083

00:03:37

passed test-llvmpipe-gles2 3/4 #691084

00:03:30

passed test-llvmpipe-gles2 4/4 #691085

00:03:30

passed test-softpipe-gles2 1/4 #691086

00:01:32

passed test-softpipe-gles2 2/4 #691087

00:01:29

passed test-softpipe-gles2 3/4 #691088

00:01:33

passed test-softpipe-gles2 4/4 #691089

00:02:26

passed test-softpipe-gles3-limited #691090

00:03:49