diff options
| author | Tobin Ehlis <tobine@google.com> | 2017-02-07 15:21:00 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2017-02-07 16:44:24 -0700 |
| commit | 79343aac8492c6cddd58ee7fc29745e7408dd789 (patch) | |
| tree | e1ae702b54f40360c9420c627a17c630bd7f6089 /layers/object_tracker.cpp | |
| parent | d326d3b21d55c58b1f8bd5699394a9d70f85d353 (diff) | |
| download | usermoji-79343aac8492c6cddd58ee7fc29745e7408dd789.tar.xz | |
layers:Add physicalDevice check
Update GetPhysicalDeviceQueueFamilyProperties() in object_tracker to
verify that physicalDevice is valid.
Diffstat (limited to 'layers/object_tracker.cpp')
| -rw-r--r-- | layers/object_tracker.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/layers/object_tracker.cpp b/layers/object_tracker.cpp index e0d70787..39d1c630 100644 --- a/layers/object_tracker.cpp +++ b/layers/object_tracker.cpp @@ -3261,6 +3261,15 @@ VKAPI_ATTR VkResult VKAPI_CALL CreateDevice(VkPhysicalDevice physicalDevice, con VKAPI_ATTR void VKAPI_CALL GetPhysicalDeviceQueueFamilyProperties(VkPhysicalDevice physicalDevice, uint32_t *pQueueFamilyPropertyCount, VkQueueFamilyProperties *pQueueFamilyProperties) { + bool skip = false; + { + std::lock_guard<std::mutex> lock(global_lock); + skip |= ValidateObject(physicalDevice, physicalDevice, VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT, false, + VALIDATION_ERROR_00028); + } + if (skip) { + return; + } get_dispatch_table(ot_instance_table_map, physicalDevice) ->GetPhysicalDeviceQueueFamilyProperties(physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties); std::lock_guard<std::mutex> lock(global_lock); |
