virgl: honor winsys supplied metadata
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 25 Sep 2019 17:44:44 +0000 (10:44 -0700)
committerGurchetan Singh <gurchetansingh@chromium.org>
Thu, 3 Oct 2019 00:57:59 +0000 (17:57 -0700)
commita1a567211828731f263c977865b51832f90f15ea
treec67a6d9cb63bc9f0f20b30a782685d5d8839e9fc
parent9bde8f3a8fcb6c3e0bf1fe4b87155161b85cf9b6
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>
src/gallium/winsys/virgl/drm/virgl_drm_winsys.c