• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2024 Valve Corporation
3  * Copyright 2024 Alyssa Rosenzweig
4  * Copyright 2022-2023 Collabora Ltd. and Red Hat Inc.
5  * SPDX-License-Identifier: MIT
6  */
7 
8 #pragma once
9 
10 #include "util/xmlconfig.h"
11 #include "hk_private.h"
12 #include "vk_instance.h"
13 
14 struct hk_instance {
15    struct vk_instance vk;
16 
17    struct driOptionCache dri_options;
18    struct driOptionCache available_dri_options;
19 
20    uint8_t driver_build_sha[20];
21    uint32_t force_vk_vendor;
22 
23    bool workaround_rgba4;
24    bool no_border;
25 };
26 
27 VK_DEFINE_HANDLE_CASTS(hk_instance, vk.base, VkInstance,
28                        VK_OBJECT_TYPE_INSTANCE)
29