From: Samuel Pitoiset Date: Mon, 13 Apr 2020 09:00:02 +0000 (+0200) Subject: radv: advertise VK_EXT_extended_dynamic_state X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00ca9b81426e678dd495971dfbd2351b17eb26c1;p=mesa.git radv: advertise VK_EXT_extended_dynamic_state Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt index e943b71ad30..abf53c14219 100644 --- a/docs/relnotes/new_features.txt +++ b/docs/relnotes/new_features.txt @@ -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. diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 71ce12fb306..dee12f98e2d 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -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; } diff --git a/src/amd/vulkan/radv_extensions.py b/src/amd/vulkan/radv_extensions.py index d2a6be4b664..37b19b932ff 100644 --- a/src/amd/vulkan/radv_extensions.py +++ b/src/amd/vulkan/radv_extensions.py @@ -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'),