aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2016-03-28 13:58:16 -0600
committerJon Ashburn <jon@lunarg.com>2016-04-01 09:43:15 -0600
commitb16e5173a411e3a9c164b8a00273da372c9bdf33 (patch)
treed2f9ded33898d2e25bd82fca93794268fecfae4e /include
parentee075aba2f1f920f38d58a5ddb0383c92eab96d9 (diff)
downloadusermoji-b16e5173a411e3a9c164b8a00273da372c9bdf33.tar.xz
loader: Remove the instance_info in the layer chain structure
Simplifies code, the loader instance structure is already passed down from trampoline code to terminator code via the pInstance parameter. It doesn't need to be added to this pCreatInfo pNext list structure. Layers which modifiy pInstance whould do it on the way up the chain not going down the chain. Change-Id: I59581b94871c094995787808cf5ae2955ad0191a
Diffstat (limited to 'include')
-rw-r--r--include/vulkan/vk_layer.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/include/vulkan/vk_layer.h b/include/vulkan/vk_layer.h
index 95d88025..2a458001 100644
--- a/include/vulkan/vk_layer.h
+++ b/include/vulkan/vk_layer.h
@@ -263,22 +263,9 @@ typedef enum VkLayerDbgAction_ {
typedef enum VkLayerFunction_ {
VK_LAYER_LINK_INFO = 0,
- VK_LAYER_DEVICE_INFO = 1,
- VK_LAYER_INSTANCE_INFO = 2
+ VK_LAYER_DEVICE_INFO = 1
} VkLayerFunction;
-/*
- * When creating the device chain the loader needs to pass
- * down information about it's device structure needed at
- * the end of the chain. Passing the data via the
- * VkLayerInstanceInfo avoids issues with finding the
- * exact instance being used.
- */
-typedef struct VkLayerInstanceInfo_ {
- void *instance_info;
- PFN_vkGetInstanceProcAddr pfnNextGetInstanceProcAddr;
-} VkLayerInstanceInfo;
-
typedef struct VkLayerInstanceLink_ {
struct VkLayerInstanceLink_ *pNext;
PFN_vkGetInstanceProcAddr pfnNextGetInstanceProcAddr;
@@ -302,7 +289,6 @@ typedef struct {
VkLayerFunction function;
union {
VkLayerInstanceLink *pLayerInfo;
- VkLayerInstanceInfo instanceInfo;
} u;
} VkLayerInstanceCreateInfo;