Mesa (main): venus: break up vn_device.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Aug 2 22:54:44 UTC 2021


Module: Mesa
Branch: main
Commit: a753f50668e9b97351f30ac985202bcfcd10fb7f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a753f50668e9b97351f30ac985202bcfcd10fb7f

Author: Chia-I Wu <olvaffe at gmail.com>
Date:   Fri Jul 30 11:17:56 2021 -0700

venus: break up vn_device.c

Break it up into vn_{device,instance,physical_device}.c.  Suggested by
Ryan Neph.

vn_EnumerateDeviceExtensionProperties and
vn_EnumerateDeviceLayerProperties were previously said to be device
commands.  But in this commit, we move them to vn_physical_device.c
instead.

Signed-off-by: Chia-I Wu <olvaffe at gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei at chromium.org>
Reviewed-by: Ryan Neph <ryanneph at google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12144>

---

 src/virtio/vulkan/meson.build          |    2 +
 src/virtio/vulkan/vn_device.c          | 3069 --------------------------------
 src/virtio/vulkan/vn_instance.c        |  821 +++++++++
 src/virtio/vulkan/vn_instance.h        |   11 +
 src/virtio/vulkan/vn_physical_device.c | 2267 +++++++++++++++++++++++
 src/virtio/vulkan/vn_physical_device.h |    3 +
 6 files changed, 3104 insertions(+), 3069 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=a753f50668e9b97351f30ac985202bcfcd10fb7f


More information about the mesa-commit mailing list