radv: Expose VK_EXT_pipeline_creation_cache_control.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 17 May 2020 00:56:04 +0000 (02:56 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 18:40:04 +0000 (18:40 +0000)
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2972
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5072>

docs/relnotes/new_features.txt
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_extensions.py

index 3562f5c712249e5cdc66f09ffc50c5dd1a988735..19895c50a5282f445a49fd9a90fed9614e90c33e 100644 (file)
@@ -1,3 +1,4 @@
 GL_ARB_compute_variable_group_size on Iris.
 VK_EXT_private_data on ANV and RADV.
 VK_EXT_custom_border_color on RADV.
+VK_EXT_pipeline_creation_cache_control on RADV.
index b57fbcf8ae94d7228044c1b36713166bf462aaa4..6691b762432867cd6bd35b9d1658c770aee6efe9 100644 (file)
@@ -1308,6 +1308,12 @@ void radv_GetPhysicalDeviceFeatures2(
                        features->privateData = true;
                        break;
                }
+               case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_CREATION_CACHE_CONTROL_FEATURES_EXT: {
+                       VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT *features =
+                               (VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT *)ext;
+                       features-> pipelineCreationCacheControl = true;
+                       break;
+               }
                default:
                        break;
                }
index 23c32653651143bc3418b62cf9a7aa039de73130..a5113eb08c921719d9023e1d14e5a121a38423ff 100644 (file)
@@ -141,6 +141,7 @@ EXTENSIONS = [
     Extension('VK_EXT_memory_budget',                     1, True),
     Extension('VK_EXT_memory_priority',                   1, True),
     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->rad_info.chip_class >= GFX10'),
     Extension('VK_EXT_private_data',                      1, True),