loader: Remove the device_info in the layer chain structure
authorJon Ashburn <jon@lunarg.com>
Tue, 29 Mar 2016 18:52:13 +0000 (12:52 -0600)
committerMark Lobodzinski <mark@lunarg.com>
Fri, 4 May 2018 15:24:24 +0000 (09:24 -0600)
    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

index 8538eec..e99e813 100644 (file)
@@ -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