Skip to content

Commit

Permalink
Remove double reporting of VK_KHR_maintenance3 related values
Browse files Browse the repository at this point in the history
Fixes #198
  • Loading branch information
SaschaWillems committed Feb 21, 2025
1 parent f853fe2 commit 7799598
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions vulkanDeviceInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Device information class
*
* Copyright (C) 2016-2024 by Sascha Willems (www.saschawillems.de)
* Copyright (C) 2016-2025 by Sascha Willems (www.saschawillems.de)
*
* This code is free software, you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -245,18 +245,6 @@ void VulkanDeviceInfo::readPhysicalProperties()
subgroupProperties["supportedStages"] = extProps.supportedStages;
subgroupProperties["supportedOperations"] = extProps.supportedOperations;
subgroupProperties["quadOperationsInAllStages"] = QVariant(bool(extProps.quadOperationsInAllStages));
// VK_KHR_maintenance3
if (extensionSupported(VK_KHR_MAINTENANCE3_EXTENSION_NAME)) {
const char* extName(VK_KHR_MAINTENANCE3_EXTENSION_NAME);
VkPhysicalDeviceProperties2KHR deviceProps2{};
VkPhysicalDeviceMaintenance3Properties extProps{};
extProps.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES;
deviceProps2.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHR;
deviceProps2.pNext = &extProps;
vulkanContext.vkGetPhysicalDeviceProperties2KHR(device, &deviceProps2);
properties2.push_back(Property2("maxPerSetDescriptors", QVariant::fromValue(extProps.maxPerSetDescriptors), extName));
properties2.push_back(Property2("maxMemoryAllocationSize", QVariant::fromValue(extProps.maxMemoryAllocationSize), extName));
}
}

// VK 1.2 core
Expand Down

0 comments on commit 7799598

Please sign in to comment.