diff options
| author | Cody Northrop <cody@lunarg.com> | 2015-08-03 17:04:53 -0600 |
|---|---|---|
| committer | Cody Northrop <cody@lunarg.com> | 2015-08-04 17:37:03 -0600 |
| commit | 4d3c11d455499e57557264e41048a922172516d7 (patch) | |
| tree | d4bf13985aacd65a98fd3c96e7cd15eb291cf04d /layers/param_checker.cpp | |
| parent | 15954693fd35d905b650bef4ec01c2dd216bde90 (diff) | |
| download | usermoji-4d3c11d455499e57557264e41048a922172516d7.tar.xz | |
v140: Bug 14251 - Inconsistencies in the definition of queries
Diffstat (limited to 'layers/param_checker.cpp')
| -rw-r--r-- | layers/param_checker.cpp | 44 |
1 files changed, 8 insertions, 36 deletions
diff --git a/layers/param_checker.cpp b/layers/param_checker.cpp index 3a7c1e6e..0c7b4d48 100644 --- a/layers/param_checker.cpp +++ b/layers/param_checker.cpp @@ -2340,52 +2340,24 @@ VK_LAYER_EXPORT VkResult VKAPI vkGetPhysicalDeviceProperties( return result; } -bool PostGetPhysicalDeviceQueueCount( +bool PostGetPhysicalDeviceQueueFamilyProperties( VkPhysicalDevice physicalDevice, uint32_t* pCount, + VkQueueFamilyProperties* pQueueProperties, VkResult result) { - if(pCount != nullptr) + if(pQueueProperties == nullptr && pCount != nullptr) { } - if(result < VK_SUCCESS) - { - std::string reason = "vkGetPhysicalDeviceQueueCount parameter, VkResult result, is " + EnumeratorString(result); - log_msg(mdd(physicalDevice), VK_DBG_REPORT_ERROR_BIT, (VkDbgObjectType)0, 0, 0, 1, "PARAMCHECK", reason.c_str()); - return false; - } - - return true; -} - -VK_LAYER_EXPORT VkResult VKAPI vkGetPhysicalDeviceQueueCount( - VkPhysicalDevice physicalDevice, - uint32_t* pCount) -{ - VkResult result = get_dispatch_table(pc_instance_table_map, physicalDevice)->GetPhysicalDeviceQueueCount(physicalDevice, pCount); - - PostGetPhysicalDeviceQueueCount(physicalDevice, pCount, result); - - return result; -} - -bool PostGetPhysicalDeviceQueueProperties( - VkPhysicalDevice physicalDevice, - uint32_t count, - VkPhysicalDeviceQueueProperties* pQueueProperties, - VkResult result) -{ - - if(pQueueProperties != nullptr) { } if(result < VK_SUCCESS) { - std::string reason = "vkGetPhysicalDeviceQueueProperties parameter, VkResult result, is " + EnumeratorString(result); + std::string reason = "vkGetPhysicalDeviceQueueFamilyProperties parameter, VkResult result, is " + EnumeratorString(result); log_msg(mdd(physicalDevice), VK_DBG_REPORT_ERROR_BIT, (VkDbgObjectType)0, 0, 0, 1, "PARAMCHECK", reason.c_str()); return false; } @@ -2395,12 +2367,12 @@ bool PostGetPhysicalDeviceQueueProperties( VK_LAYER_EXPORT VkResult VKAPI vkGetPhysicalDeviceQueueProperties( VkPhysicalDevice physicalDevice, - uint32_t count, - VkPhysicalDeviceQueueProperties* pQueueProperties) + uint32_t* pCount, + VkQueueFamilyProperties* pQueueProperties) { - VkResult result = get_dispatch_table(pc_instance_table_map, physicalDevice)->GetPhysicalDeviceQueueProperties(physicalDevice, count, pQueueProperties); + VkResult result = get_dispatch_table(pc_instance_table_map, physicalDevice)->GetPhysicalDeviceQueueFamilyProperties(physicalDevice, pCount, pQueueProperties); - PostGetPhysicalDeviceQueueProperties(physicalDevice, count, pQueueProperties, result); + PostGetPhysicalDeviceQueueFamilyProperties(physicalDevice, pCount, pQueueProperties, result); return result; } |
