anv: enable VK_EXT_pipeline_creation_cache_control
authorIván Briano <ivan.briano@intel.com>
Wed, 20 May 2020 21:36:49 +0000 (14:36 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 17 Jun 2020 00:48:39 +0000 (00:48 +0000)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5136>

docs/relnotes/new_features.txt
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_extensions.py

index f3ca40d80a813bc9b3746cdf90a74e99c009f162..8c28de416eb2ca91b031b2214788be011673de36 100644 (file)
@@ -3,7 +3,7 @@ GL_EXT_shader_group_vote on GLES3.
 VK_AMD_texture_gather_bias_lod on RADV.
 VK_EXT_private_data on ANV and RADV.
 VK_EXT_custom_border_color on RADV.
-VK_EXT_pipeline_creation_cache_control on RADV.
+VK_EXT_pipeline_creation_cache_control on ANV and RADV.
 VK_EXT_shader_demote_to_helper_invocation on RADV/LLVM.
 VK_EXT_subgroup_size_control on RADV/ACO.
 VK_GOOGLE_user_type on ANV and RADV.
index 52f2ab44af55b8a2f00a15468862b26582bfb2c9..9bb535749b93c1d5869ad13002c7ec3d65496ea5 100644 (file)
@@ -1259,6 +1259,13 @@ void anv_GetPhysicalDeviceFeatures2(
          break;
       }
 
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_CREATION_CACHE_CONTROL_FEATURES_EXT: {
+         VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT *features =
+            (VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT *)ext;
+         features->pipelineCreationCacheControl = true;
+         break;
+      }
+
       case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_EXECUTABLE_PROPERTIES_FEATURES_KHR: {
          VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR *features =
             (VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR *)ext;
index 8ee1ab7230caef2b206740a16c8b60d54fb479c3..4ccfe83d97085fb0a20de8c206bf4354fc6bece1 100644 (file)
@@ -142,6 +142,7 @@ EXTENSIONS = [
     Extension('VK_EXT_line_rasterization',                1, True),
     Extension('VK_EXT_memory_budget',                     1, 'device->has_mem_available'),
     Extension('VK_EXT_pci_bus_info',                      2, True),
+    Extension('VK_EXT_pipeline_creation_cache_control',   3, True),
     Extension('VK_EXT_pipeline_creation_feedback',        1, True),
     Extension('VK_EXT_post_depth_coverage',               1, 'device->info.gen >= 9'),
     Extension('VK_EXT_private_data',                      1, True),