layers: Updated Object Tracker layer for aliases
GetPhysicalDeviceQueueFamilyProperties2[KHR]
diff --git a/layers/object_tracker_utils.cpp b/layers/object_tracker_utils.cpp
index 957f347..c9573dd 100644
--- a/layers/object_tracker_utils.cpp
+++ b/layers/object_tracker_utils.cpp
@@ -1006,6 +1006,34 @@
get_dispatch_table(ot_device_table_map, device)->DestroyCommandPool(device, commandPool, pAllocator);
}
+// Note: This is the core version of this routine. The extension version is below.
+VKAPI_ATTR void VKAPI_CALL GetPhysicalDeviceQueueFamilyProperties2(VkPhysicalDevice physicalDevice,
+ uint32_t *pQueueFamilyPropertyCount,
+ VkQueueFamilyProperties2KHR *pQueueFamilyProperties) {
+ bool skip = false;
+ {
+ std::lock_guard<std::mutex> lock(global_lock);
+ skip |= ValidateObject(physicalDevice, physicalDevice, kVulkanObjectTypePhysicalDevice, false, VALIDATION_ERROR_UNDEFINED,
+ VALIDATION_ERROR_UNDEFINED);
+ }
+ if (skip) {
+ return;
+ }
+ get_dispatch_table(ot_instance_table_map, physicalDevice)
+ ->GetPhysicalDeviceQueueFamilyProperties2(physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties);
+ std::lock_guard<std::mutex> lock(global_lock);
+ if (pQueueFamilyProperties != NULL) {
+ layer_data *instance_data = GetLayerDataPtr(get_dispatch_key(physicalDevice), layer_data_map);
+ if (instance_data->queue_family_properties.size() < *pQueueFamilyPropertyCount) {
+ instance_data->queue_family_properties.resize(*pQueueFamilyPropertyCount);
+ }
+ for (uint32_t i = 0; i < *pQueueFamilyPropertyCount; i++) {
+ instance_data->queue_family_properties[i] = pQueueFamilyProperties[i].queueFamilyProperties;
+ }
+ }
+}
+
+// Note: This is the extension version of this routine. The core version is above.
VKAPI_ATTR void VKAPI_CALL GetPhysicalDeviceQueueFamilyProperties2KHR(VkPhysicalDevice physicalDevice,
uint32_t *pQueueFamilyPropertyCount,
VkQueueFamilyProperties2KHR *pQueueFamilyProperties) {
diff --git a/scripts/object_tracker_generator.py b/scripts/object_tracker_generator.py
index c2217a7..405a5b7 100644
--- a/scripts/object_tracker_generator.py
+++ b/scripts/object_tracker_generator.py
@@ -140,6 +140,7 @@
'vkDestroySwapchainKHR',
'vkDestroyDescriptorPool',
'vkDestroyCommandPool',
+ 'vkGetPhysicalDeviceQueueFamilyProperties2',
'vkGetPhysicalDeviceQueueFamilyProperties2KHR',
'vkResetDescriptorPool',
'vkBeginCommandBuffer',