summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_private.h
diff options
context:
space:
mode:
authorAndres Rodriguez <[email protected]>2017-01-13 18:44:17 -0500
committerBas Nieuwenhuizen <[email protected]>2017-01-14 14:20:17 +0100
commit1e1bddf15a1720917b11e44dc639351ad613c3dc (patch)
tree62666956807e4a59c99c7ccfc3c102edb3cba8c1 /src/amd/vulkan/radv_private.h
parent5323efb685634341df10f7f5b2fe37a0a2ca5e52 (diff)
radv: make device extension setup dynamic
Each physical device may have different extensions than one another. Furthermore, depending on the software stack, some extensions may not be accessible. If an extension is conditional, it can be registered only when necessary. v2: removed unused function and fixed indentation Signed-off-by: Andres Rodriguez <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r--src/amd/vulkan/radv_private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index ab4ede69566..b095e3f39a6 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -263,6 +263,11 @@ void *radv_lookup_entrypoint(const char *name);
extern struct radv_dispatch_table dtable;
+struct radv_extensions {
+ VkExtensionProperties *ext_array;
+ uint32_t num_ext;
+};
+
struct radv_physical_device {
VK_LOADER_DATA _loader_data;
@@ -275,6 +280,7 @@ struct radv_physical_device {
uint8_t uuid[VK_UUID_SIZE];
struct wsi_device wsi_device;
+ struct radv_extensions extensions;
};
struct radv_instance {