summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorClay John <claynjohn@gmail.com>2022-10-24 12:02:06 -0700
committerGitHub <noreply@github.com>2022-10-24 12:02:06 -0700
commitc51a42778df3239fa3e9ef23e701146675985f3c (patch)
tree60f04b3a251c2c1a27afde97595fb9215dc669a1 /drivers
parent040f49ed6e71a6e7f23d763c4b56095cbf319ef7 (diff)
parentae38d7930e3912b7259badcaa705d24137e5413c (diff)
Merge pull request #67541 from RandomShaper/refactor_subgroup_ads
Let the RD driver itself expose subgroup caps
Diffstat (limited to 'drivers')
-rw-r--r--drivers/vulkan/vulkan_context.cpp9
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;