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
This commit is contained in:
parent
c51485f24a
commit
f54813d16e
@ -268,8 +268,7 @@ typedef enum VkLayerDbgAction_ {
|
|||||||
*/
|
*/
|
||||||
typedef enum VkLayerFunction_ {
|
typedef enum VkLayerFunction_ {
|
||||||
VK_LAYER_LINK_INFO = 0,
|
VK_LAYER_LINK_INFO = 0,
|
||||||
VK_LAYER_DEVICE_INFO = 1,
|
VK_LOADER_DISPATCH_CALLBACK = 1
|
||||||
VK_LOADER_DISPATCH_CALLBACK = 2
|
|
||||||
} VkLayerFunction;
|
} VkLayerFunction;
|
||||||
|
|
||||||
typedef struct VkLayerInstanceLink_ {
|
typedef struct VkLayerInstanceLink_ {
|
||||||
@ -314,9 +313,6 @@ typedef struct {
|
|||||||
VkLayerFunction function;
|
VkLayerFunction function;
|
||||||
union {
|
union {
|
||||||
VkLayerDeviceLink *pLayerInfo;
|
VkLayerDeviceLink *pLayerInfo;
|
||||||
VkLayerDeviceInfo deviceInfo;
|
|
||||||
} u;
|
} u;
|
||||||
} VkLayerDeviceCreateInfo;
|
} VkLayerDeviceCreateInfo;
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
|
||||||
// API functions
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user