From f54813d16e39a4d9766bc29a7ababf18b35098e3 Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Tue, 29 Mar 2016 12:52:13 -0600 Subject: [PATCH] loader: Remove the device_info in the layer chain structure Simplifies code, the loader device structure is passed down from trampoline code to terminator code via the pDevice parameter. It doesn't need to be added to this pCreatInfo pNext list structure. Layers which modifiy pDevice whould do it on the way up the chain not going down the chain. Change-Id: Ibf7e4ffdc1a36f52b1a99389dcab25d572655aec --- include/vulkan/vk_layer.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/vulkan/vk_layer.h b/include/vulkan/vk_layer.h index 8538eec..e99e813 100644 --- a/include/vulkan/vk_layer.h +++ b/include/vulkan/vk_layer.h @@ -268,8 +268,7 @@ typedef enum VkLayerDbgAction_ { */ typedef enum VkLayerFunction_ { VK_LAYER_LINK_INFO = 0, - VK_LAYER_DEVICE_INFO = 1, - VK_LOADER_DISPATCH_CALLBACK = 2 + VK_LOADER_DISPATCH_CALLBACK = 1 } VkLayerFunction; typedef struct VkLayerInstanceLink_ { @@ -314,9 +313,6 @@ typedef struct { VkLayerFunction function; union { VkLayerDeviceLink *pLayerInfo; - VkLayerDeviceInfo deviceInfo; } u; } VkLayerDeviceCreateInfo; -// ------------------------------------------------------------------------------------------------ -// API functions -- 2.7.4