From 26826a7d607e378501dbd2cede291c8b25fd87bb Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 21 Sep 2021 13:59:43 +0100 Subject: [PATCH] radv: Enable raytracing extensions on older generations We have shader-based bvh traversal for this on older generations now. Signed-off-by: Joshua Ashton Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_device.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 075dcea0712..5a719bb1005 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -406,8 +406,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device *ext = (struct vk_device_extension_table){ .KHR_8bit_storage = true, .KHR_16bit_storage = true, - .KHR_acceleration_structure = (device->instance->perftest_flags & RADV_PERFTEST_RT) && - device->rad_info.chip_class >= GFX10_3, + .KHR_acceleration_structure = !!(device->instance->perftest_flags & RADV_PERFTEST_RT), .KHR_bind_memory2 = true, .KHR_buffer_device_address = true, .KHR_copy_commands2 = true, @@ -437,11 +436,9 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device .KHR_maintenance3 = true, .KHR_multiview = true, .KHR_pipeline_executable_properties = true, - .KHR_pipeline_library = (device->instance->perftest_flags & RADV_PERFTEST_RT) && - device->rad_info.chip_class >= GFX10_3 && !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->rad_info.chip_class >= GFX10_3 && !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,