1 /* 2 * Copyright © 2022 Collabora Ltd. and Red Hat Inc. 3 * SPDX-License-Identifier: MIT 4 */ 5 #ifndef NVK_INSTANCE_H 6 #define NVK_INSTANCE_H 1 7 8 #include "nvk_private.h" 9 10 #include "nvk_debug.h" 11 #include "vk_instance.h" 12 #include "util/xmlconfig.h" 13 14 struct nvk_instance { 15 struct vk_instance vk; 16 17 enum nvk_debug debug_flags; 18 19 struct driOptionCache dri_options; 20 struct driOptionCache available_dri_options; 21 22 uint8_t driver_build_sha[20]; 23 uint32_t force_vk_vendor; 24 }; 25 26 VK_DEFINE_HANDLE_CASTS(nvk_instance, vk.base, VkInstance, VK_OBJECT_TYPE_INSTANCE) 27 28 #endif 29