radv: advertise VK_EXT_extended_dynamic_state
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 13 Apr 2020 09:00:02 +0000 (11:00 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Jul 2020 08:31:54 +0000 (08:31 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5718>

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

index e943b71ad30058202d22194befdcf0f96a2f1346..abf53c142198a0f1648612f0795d116ee532ce01 100644 (file)
@@ -6,6 +6,7 @@ GL_EXT_shader_group_vote on GLES3.
 VK_AMD_texture_gather_bias_lod on RADV.
 VK_AMD_gpu_shader_half_float on RADV/ACO.
 VK_AMD_gpu_shader_int16 on RADV/ACO.
+VK_EXT_extended_dynamic_state on RADV.
 VK_EXT_private_data on ANV and RADV.
 VK_EXT_custom_border_color on ANV and RADV.
 VK_EXT_pipeline_creation_cache_control on ANV and RADV.
index 71ce12fb306d9f5b5ea0af40e3d2de1c3b73a7ab..dee12f98e2d092906593995d277fbbea94f51dc8 100644 (file)
@@ -1325,6 +1325,12 @@ void radv_GetPhysicalDeviceFeatures2(
                        features-> pipelineCreationCacheControl = true;
                        break;
                }
+               case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_FEATURES_EXT: {
+                       VkPhysicalDeviceExtendedDynamicStateFeaturesEXT *features =
+                               (VkPhysicalDeviceExtendedDynamicStateFeaturesEXT *) ext;
+                       features->extendedDynamicState = true;
+                       break;
+               }
                default:
                        break;
                }
index d2a6be4b6648a17010c6edf2e0d1fde8b0e0669f..37b19b932ff0f20174d36348366bc7d19479501f 100644 (file)
@@ -130,7 +130,7 @@ EXTENSIONS = [
     Extension('VK_EXT_depth_range_unrestricted',          1, True),
     Extension('VK_EXT_descriptor_indexing',               2, True),
     Extension('VK_EXT_discard_rectangles',                1, True),
-    Extension('VK_EXT_extended_dynamic_state',            1, False),
+    Extension('VK_EXT_extended_dynamic_state',            1, True),
     Extension('VK_EXT_external_memory_dma_buf',           1, True),
     Extension('VK_EXT_external_memory_host',              1, 'device->rad_info.has_userptr'),
     Extension('VK_EXT_global_priority',                   1, 'device->rad_info.has_ctx_priority'),