radv: only expose EXT_pipeline_library_group_handles if RT is enabled
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 1 Mar 2023 07:08:23 +0000 (08:08 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 1 Mar 2023 10:55:00 +0000 (10:55 +0000)
VK_EXT_pipeline_library_group_handles requires
VK_KHR_ray_tracing_pipeline to be enabled.

Fixes dEQP-VK.info.device_extensions.

Fixes: ed768337050 ("radv: Implement & expose VK_EXT_pipeline_library_group_handles.")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21618>

src/amd/vulkan/radv_device.c

index a252d3d..536b215 100644 (file)
@@ -631,7 +631,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device
 #endif
       .EXT_pipeline_creation_cache_control = true,
       .EXT_pipeline_creation_feedback = true,
-      .EXT_pipeline_library_group_handles = true,
+      .EXT_pipeline_library_group_handles = radv_enable_rt(device, true),
       .EXT_post_depth_coverage = device->rad_info.gfx_level >= GFX10,
       .EXT_primitive_topology_list_restart = true,
       .EXT_primitives_generated_query = true,