From: Jason Ekstrand Date: Thu, 18 Apr 2019 19:17:50 +0000 (-0500) Subject: anv: Advertise VK_KHR_shader_subgroup_extended_types X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d861ab8128d8011ce49f3a02bb0e2de176f782b;p=mesa.git anv: Advertise VK_KHR_shader_subgroup_extended_types Reviewed-by: Paulo Zanoni --- diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 7382f057629..323bb61ce39 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1207,6 +1207,13 @@ void anv_GetPhysicalDeviceFeatures2( break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES_KHR: { + VkPhysicalDeviceShaderSubgroupExtendedTypesFeaturesKHR *features = + (VkPhysicalDeviceShaderSubgroupExtendedTypesFeaturesKHR *)ext; + features->shaderSubgroupExtendedTypes = true; + break; + } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_FEATURES_EXT: { VkPhysicalDeviceSubgroupSizeControlFeaturesEXT *features = (VkPhysicalDeviceSubgroupSizeControlFeaturesEXT *)ext; diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_extensions.py index 185fff92c73..dad49a1e564 100644 --- a/src/intel/vulkan/anv_extensions.py +++ b/src/intel/vulkan/anv_extensions.py @@ -111,6 +111,7 @@ EXTENSIONS = [ Extension('VK_KHR_shader_draw_parameters', 1, True), Extension('VK_KHR_shader_float16_int8', 1, 'device->info.gen >= 8'), Extension('VK_KHR_shader_float_controls', 1, 'device->info.gen >= 8'), + Extension('VK_KHR_shader_subgroup_extended_types', 1, 'device->info.gen >= 8'), Extension('VK_KHR_storage_buffer_storage_class', 1, True), Extension('VK_KHR_surface', 25, 'ANV_HAS_SURFACE'), Extension('VK_KHR_surface_protected_capabilities', 1, 'ANV_HAS_SURFACE'),