~mmach/netext73/mesa-haswell

« back to all changes in this revision

Viewing changes to src/virtio/vulkan/vn_device.h

  • Committer: mmach
  • Date: 2022-09-22 19:56:13 UTC
  • Revision ID: netbit73@gmail.com-20220922195613-wtik9mmy20tmor0i
2022-09-22 21:17:09

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright 2019 Google LLC
3
 
 * SPDX-License-Identifier: MIT
4
 
 *
5
 
 * based in part on anv and radv which are:
6
 
 * Copyright © 2015 Intel Corporation
7
 
 * Copyright © 2016 Red Hat.
8
 
 * Copyright © 2016 Bas Nieuwenhuizen
9
 
 */
10
 
 
11
 
#ifndef VN_DEVICE_H
12
 
#define VN_DEVICE_H
13
 
 
14
 
#include "vn_common.h"
15
 
 
16
 
#include "vn_buffer.h"
17
 
#include "vn_device_memory.h"
18
 
 
19
 
struct vn_device {
20
 
   struct vn_device_base base;
21
 
 
22
 
   struct vn_instance *instance;
23
 
   struct vn_physical_device *physical_device;
24
 
   struct vn_renderer *renderer;
25
 
 
26
 
   struct vn_queue *queues;
27
 
   uint32_t queue_count;
28
 
 
29
 
   struct vn_device_memory_pool memory_pools[VK_MAX_MEMORY_TYPES];
30
 
 
31
 
   struct vn_buffer_cache buffer_cache;
32
 
};
33
 
VK_DEFINE_HANDLE_CASTS(vn_device,
34
 
                       base.base.base,
35
 
                       VkDevice,
36
 
                       VK_OBJECT_TYPE_DEVICE)
37
 
 
38
 
#endif /* VN_DEVICE_H */