mesa/src/virtio/vulkan/vn_device.h
Chia-I Wu 22cb100ea0 venus: break up vn_device.h
Break it up into vn_{device,instance,physical_device}.h.  Suggested by
Ryan Neph.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12144>
2021-08-02 22:45:45 +00:00

38 lines
892 B
C

/*
* Copyright 2019 Google LLC
* SPDX-License-Identifier: MIT
*
* based in part on anv and radv which are:
* Copyright © 2015 Intel Corporation
* Copyright © 2016 Red Hat.
* Copyright © 2016 Bas Nieuwenhuizen
*/
#ifndef VN_DEVICE_H
#define VN_DEVICE_H
#include "vn_common.h"
#include "vn_device_memory.h"
struct vn_device {
struct vn_device_base base;
struct vn_instance *instance;
struct vn_physical_device *physical_device;
struct vn_renderer *renderer;
struct vn_queue *queues;
uint32_t queue_count;
struct vn_device_memory_pool memory_pools[VK_MAX_MEMORY_TYPES];
/* cache memory type requirement for AHB backed VkBuffer */
uint32_t ahb_buffer_memory_type_bits;
};
VK_DEFINE_HANDLE_CASTS(vn_device,
base.base.base,
VkDevice,
VK_OBJECT_TYPE_DEVICE)
#endif /* VN_DEVICE_H */