diff options
author | Lionel Landwerlin <[email protected]> | 2017-01-12 16:12:46 +0000 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2017-03-02 10:34:06 +0000 |
commit | 9f60ed98e501da799df2aa6251536a96a7a513ed (patch) | |
tree | b63285384b4244d75c958dbee7f5b564403ed143 /src/intel/vulkan/anv_device.c | |
parent | 12dee851a3108aabaa80b5c05a633b4bb3d4023b (diff) |
anv: add VK_KHR_push_descriptor support
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 9b9355c2ff0..0764db1e135 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -261,6 +261,10 @@ static const VkExtensionProperties device_extensions[] = { { .extensionName = VK_KHR_SHADER_DRAW_PARAMETERS_EXTENSION_NAME, .specVersion = 1, + }, + { + .extensionName = VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME, + .specVersion = 1, } }; @@ -502,6 +506,14 @@ void anv_GetPhysicalDeviceFeatures2KHR( vk_foreach_struct(ext, pFeatures->pNext) { switch (ext->sType) { + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR: { + VkPhysicalDevicePushDescriptorPropertiesKHR *properties = + (VkPhysicalDevicePushDescriptorPropertiesKHR *) ext; + + properties->maxPushDescriptors = MAX_PUSH_DESCRIPTORS; + break; + } + default: anv_debug_ignored_stype(ext->sType); break; |