anv: Advertise VK_KHR_shader_subgroup_extended_types
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 18 Apr 2019 19:17:50 +0000 (14:17 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 20 Sep 2019 18:02:15 +0000 (18:02 +0000)
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_extensions.py

index 7382f0576293bec217cb6569e1f8800446918d2e..323bb61ce39edf2ca1070f1b87a0b40d10c700cc 100644 (file)
@@ -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;
index 185fff92c732020a8dab74ddbc1fea94fe1e2e5e..dad49a1e564220b6a74e6420c6b012e940ad9660 100644 (file)
@@ -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'),