Module: Mesa Branch: main Commit: 61ece8f6a49db58a76c2b6e825964675decc5d83 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=61ece8f6a49db58a76c2b6e825964675decc5d83
Author: Iván Briano <[email protected]> Date: Thu Nov 4 12:19:07 2021 -0700 anv: Enable VK_KHR_dynamic_rendering Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13980> --- docs/features.txt | 2 +- docs/relnotes/new_features.txt | 2 +- src/intel/vulkan/anv_device.c | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/features.txt b/docs/features.txt index 2dac489aa8c..aa226428bb2 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -477,7 +477,7 @@ Khronos extensions that are not part of any Vulkan version: VK_KHR_deferred_host_operations DONE (anv, radv) VK_KHR_display DONE (anv, lvp, radv, tu, v3dv) VK_KHR_display_swapchain not started - VK_KHR_dynamic_rendering DONE (lvp, radv) + VK_KHR_dynamic_rendering DONE (anv, lvp, radv) VK_KHR_external_fence_fd DONE (anv, radv, tu, v3dv, vn) VK_KHR_external_fence_win32 not started VK_KHR_external_memory_fd DONE (anv, lvp, radv, tu, v3dv, vn) diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt index a1ad17e29f7..ecbb922f413 100644 --- a/docs/relnotes/new_features.txt +++ b/docs/relnotes/new_features.txt @@ -1,4 +1,4 @@ -lavapipe,radv KHR_dynamic_rendering +lavapipe,radv,anv KHR_dynamic_rendering radv EXT_image_view_min_lod VK_KHR_synchronization2 on RADV. OpenSWR has been moved to the Amber branch diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index d8ec63da460..5f0d7e01e48 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -190,6 +190,7 @@ get_device_extensions(const struct anv_physical_device *device, .KHR_device_group = true, .KHR_draw_indirect_count = true, .KHR_driver_properties = true, + .KHR_dynamic_rendering = true, .KHR_external_fence = has_syncobj_wait, .KHR_external_fence_fd = has_syncobj_wait, .KHR_external_memory = true, @@ -1495,6 +1496,13 @@ void anv_GetPhysicalDeviceFeatures2( break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_FEATURES_KHR: { + VkPhysicalDeviceDynamicRenderingFeaturesKHR *features = + (VkPhysicalDeviceDynamicRenderingFeaturesKHR *)ext; + features->dynamicRendering = true; + break; + } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_INTERLOCK_FEATURES_EXT: { VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT *features = (VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT *)ext;
