layers: Add physical device props init to CV
authorMark Lobodzinski <mark@lunarg.com>
Wed, 11 Jan 2017 16:34:01 +0000 (09:34 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Tue, 17 Jan 2017 21:58:38 +0000 (14:58 -0700)
Image layer checks need limits/caps.

Change-Id: Ib01d194e57563e327ce15846a7a384d78929ebc4

layers/core_validation.cpp

index 651320d..ade1ce7 100644 (file)
@@ -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);