diff options
author | Clay John <claynjohn@gmail.com> | 2022-10-24 12:02:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 12:02:06 -0700 |
commit | c51a42778df3239fa3e9ef23e701146675985f3c (patch) | |
tree | 60f04b3a251c2c1a27afde97595fb9215dc669a1 /drivers/vulkan | |
parent | 040f49ed6e71a6e7f23d763c4b56095cbf319ef7 (diff) | |
parent | ae38d7930e3912b7259badcaa705d24137e5413c (diff) |
Merge pull request #67541 from RandomShaper/refactor_subgroup_ads
Let the RD driver itself expose subgroup caps
Diffstat (limited to 'drivers/vulkan')
-rw-r--r-- | drivers/vulkan/vulkan_context.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp index 688efa42e1..9ee5a67471 100644 --- a/drivers/vulkan/vulkan_context.cpp +++ b/drivers/vulkan/vulkan_context.cpp @@ -717,9 +717,12 @@ Error VulkanContext::_check_capabilities() { VkPhysicalDeviceProperties2 physicalDeviceProperties{}; void *nextptr = nullptr; - subgroupProperties.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_PROPERTIES; - subgroupProperties.pNext = nextptr; - nextptr = &subgroupProperties; + if (!(vulkan_major == 1 && vulkan_minor == 0)) { + subgroupProperties.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_PROPERTIES; + subgroupProperties.pNext = nextptr; + + nextptr = &subgroupProperties; + } if (multiview_capabilities.is_supported) { multiviewProperties.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES; |