Mesa (master): anv: enable VK_EXT_pipeline_creation_cache_control

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 17 01:05:35 UTC 2020


Module: Mesa
Branch: master
Commit: ed7bebc17b4bc106eb8fba370607a50c2a367485
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed7bebc17b4bc106eb8fba370607a50c2a367485

Author: Iván Briano <ivan.briano at intel.com>
Date:   Wed May 20 14:36:49 2020 -0700

anv: enable VK_EXT_pipeline_creation_cache_control

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5136>

---

 docs/relnotes/new_features.txt     | 2 +-
 src/intel/vulkan/anv_device.c      | 7 +++++++
 src/intel/vulkan/anv_extensions.py | 1 +
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt
index f3ca40d80a8..8c28de416eb 100644
--- a/docs/relnotes/new_features.txt
+++ b/docs/relnotes/new_features.txt
@@ -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.
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index 52f2ab44af5..9bb535749b9 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -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;
diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_extensions.py
index 8ee1ab7230c..4ccfe83d970 100644
--- a/src/intel/vulkan/anv_extensions.py
+++ b/src/intel/vulkan/anv_extensions.py
@@ -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),



More information about the mesa-commit mailing list