From 4a4d70b99f38231f495a232da13a82e72850e963 Mon Sep 17 00:00:00 2001 From: Mark Lobodzinski Date: Wed, 11 Jan 2017 09:34:01 -0700 Subject: [PATCH] layers: Add physical device props init to CV Image layer checks need limits/caps. Change-Id: Ib01d194e57563e327ce15846a7a384d78929ebc4 --- layers/core_validation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 651320d4..ade1ce7d 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -174,6 +174,7 @@ struct layer_data { // Device specific data PHYS_DEV_PROPERTIES_NODE phys_dev_properties = {}; VkPhysicalDeviceMemoryProperties phys_dev_mem_props = {}; + VkPhysicalDeviceProperties phys_dev_props = {}; }; // TODO : Do we need to guard access to layer_data_map w/ lock? @@ -4280,8 +4281,9 @@ VKAPI_ATTR VkResult VKAPI_CALL CreateDevice(VkPhysicalDevice gpu, const VkDevice } else { memset(&my_device_data->enabled_features, 0, sizeof(VkPhysicalDeviceFeatures)); } - // Store physical device mem limits into device layer_data struct + // Store physical device properties and physical device mem limits into device layer_data structs my_instance_data->dispatch_table.GetPhysicalDeviceMemoryProperties(gpu, &my_device_data->phys_dev_mem_props); + my_instance_data->dispatch_table.GetPhysicalDeviceProperties(gpu, &my_device_data->phys_dev_props); lock.unlock(); ValidateLayerOrdering(*pCreateInfo); -- 2.34.1