Debian Codegraph @

src/imagination/vulkan/pvr_instance.h

raw
1 /*
2 * Copyright © 2022 Imagination Technologies Ltd.
3 *
4 * based in part on anv driver which is:
5 * Copyright © 2015 Intel Corporation
6 *
7 * based in part on radv driver which is:
8 * Copyright © 2016 Red Hat.
9 * Copyright © 2016 Bas Nieuwenhuizen
10 *
11 * SPDX-License-Identifier: MIT
12 */
13
14 #ifndef PVR_INSTANCE_H
15 #define PVR_INSTANCE_H
16
17 #include "vk_instance.h"
18
19 #include <stdint.h>
20
21 #include "util/mesa-blake3.h"
22
23 struct pvr_instance {
24 struct vk_instance vk;
25
26 uint32_t active_device_count;
27
28 uint8_t driver_build_sha[BLAKE3_KEY_LEN];
29 };
30
31 VK_DEFINE_HANDLE_CASTS(pvr_instance,
32 vk.base,
33 VkInstance,
34 VK_OBJECT_TYPE_INSTANCE)
35
36 #endif /* PVR_INSTANCE_H */