From 6cea77373058f62d7bb1079d6694b48c5d6b4039 Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Mon, 27 Jun 2016 15:14:12 -0600 Subject: layers: Move phys dev call state structs to CV Change-Id: I92faf07ea2e47d2013bb206e04de26081049f79f --- layers/core_validation.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index e8d8e748..acecb50a 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -105,6 +105,8 @@ struct shader_module; // TODO : Split this into separate structs for instance and device level data? struct layer_data { VkInstance instance; + unique_ptr instance_state; + debug_report_data *report_data; std::vector logging_callback; @@ -145,10 +147,11 @@ struct layer_data { // Device specific data PHYS_DEV_PROPERTIES_NODE phys_dev_properties; VkPhysicalDeviceMemoryProperties phys_dev_mem_props; + unique_ptr physicalDeviceState; layer_data() - : report_data(nullptr), device_dispatch_table(nullptr), instance_dispatch_table(nullptr), device_extensions(), - device(VK_NULL_HANDLE), phys_dev_properties{}, phys_dev_mem_props{} {}; + : instance_state(nullptr), report_data(nullptr), device_dispatch_table(nullptr), instance_dispatch_table(nullptr), + device_extensions(), device(VK_NULL_HANDLE), phys_dev_properties{}, phys_dev_mem_props{}, physicalDeviceState(nullptr){}; }; // TODO : Do we need to guard access to layer_data_map w/ lock? @@ -3939,7 +3942,7 @@ CreateInstance(const VkInstanceCreateInfo *pCreateInfo, const VkAllocationCallba pCreateInfo->ppEnabledExtensionNames); init_core_validation(instance_data, pAllocator); - + instance_data->instance_state = unique_ptr(new INSTANCE_STATE()); ValidateLayerOrdering(*pCreateInfo); return result; -- cgit v1.2.3