radv: Expose the VK_KHR_dynamic_rendering extension.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13721>
This commit is contained in:
Bas Nieuwenhuizen 2021-11-01 16:36:44 +01:00 committed by Marge Bot
parent 483a08d552
commit e914a6710f
3 changed files with 13 additions and 4 deletions

View File

@ -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)
VK_KHR_dynamic_rendering DONE (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)

View File

@ -1,3 +1,3 @@
lavapipe KHR_dynamic_rendering
lavapipe,radv KHR_dynamic_rendering
radv EXT_image_view_min_lod
VK_KHR_synchronization2 on RADV.

View File

@ -418,6 +418,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device
.KHR_device_group = true,
.KHR_draw_indirect_count = true,
.KHR_driver_properties = true,
.KHR_dynamic_rendering = true,
.KHR_external_fence = true,
.KHR_external_fence_fd = true,
.KHR_external_memory = true,
@ -438,9 +439,11 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device
.KHR_maintenance4 = true,
.KHR_multiview = true,
.KHR_pipeline_executable_properties = true,
.KHR_pipeline_library = (device->instance->perftest_flags & RADV_PERFTEST_RT) && !device->use_llvm,
.KHR_pipeline_library =
(device->instance->perftest_flags & RADV_PERFTEST_RT) && !device->use_llvm,
.KHR_push_descriptor = true,
.KHR_ray_tracing_pipeline = (device->instance->perftest_flags & RADV_PERFTEST_RT) && !device->use_llvm,
.KHR_ray_tracing_pipeline =
(device->instance->perftest_flags & RADV_PERFTEST_RT) && !device->use_llvm,
.KHR_relaxed_block_layout = true,
.KHR_sampler_mirror_clamp_to_edge = true,
.KHR_sampler_ycbcr_conversion = true,
@ -1644,6 +1647,12 @@ radv_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
features->synchronization2 = true;
break;
}
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_FEATURES_KHR: {
VkPhysicalDeviceDynamicRenderingFeaturesKHR *features =
(VkPhysicalDeviceDynamicRenderingFeaturesKHR *)ext;
features->dynamicRendering = true;
break;
}
default:
break;
}