anv: toggle on VK_EXT_extended_dynamic_state
authorTapani Pälli <tapani.palli@intel.com>
Wed, 10 Jun 2020 10:07:25 +0000 (13:07 +0300)
committerMarge Bot <eric+marge@anholt.net>
Sun, 2 Aug 2020 17:44:54 +0000 (17:44 +0000)
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5604>

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

index 12dda3b2dee900c181bff1cae8269a009444cea8..e28d2422b6c5bc1603bf5b7d868fd23a3c88d769 100644 (file)
@@ -8,7 +8,7 @@ GL_EXT_texture_shadow_lod on llvmpipe
 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_extended_dynamic_state on ANV and RADV.
 VK_EXT_image_robustness on RADV.
 VK_EXT_private_data on ANV and RADV.
 VK_EXT_custom_border_color on ANV and RADV.
index b68b81f94ddebe762451746c5e76b25eeccb672c..96b4e320801b7ce469f29cac223ec700fa6917e6 100644 (file)
@@ -1447,6 +1447,13 @@ void anv_GetPhysicalDeviceFeatures2(
          break;
       }
 
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_FEATURES_EXT: {
+         VkPhysicalDeviceExtendedDynamicStateFeaturesEXT *features =
+            (VkPhysicalDeviceExtendedDynamicStateFeaturesEXT *)ext;
+         features->extendedDynamicState = true;
+         break;
+      }
+
       default:
          anv_debug_ignored_stype(ext->sType);
          break;
index 5245500cb7e46c41e32db0a35c4992f49fcfb3ca..3bbbe828141f99b7e97f0b58cd963e3a795c5ece 100644 (file)
@@ -130,7 +130,7 @@ EXTENSIONS = [
     Extension('VK_EXT_direct_mode_display',               1, 'VK_USE_PLATFORM_DISPLAY_KHR'),
     Extension('VK_EXT_display_control',                   1, 'VK_USE_PLATFORM_DISPLAY_KHR'),
     Extension('VK_EXT_display_surface_counter',           1, 'VK_USE_PLATFORM_DISPLAY_KHR'),
-    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, True),
     Extension('VK_EXT_fragment_shader_interlock',         1, 'device->info.gen >= 9'),