Mesa (main): radv: Enable raytracing extensions on older generations

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Oct 4 12:16:03 UTC 2021


Module: Mesa
Branch: main
Commit: 26826a7d607e378501dbd2cede291c8b25fd87bb
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=26826a7d607e378501dbd2cede291c8b25fd87bb

Author: Joshua Ashton <joshua at froggi.es>
Date:   Tue Sep 21 13:59:43 2021 +0100

radv: Enable raytracing extensions on older generations

We have shader-based bvh traversal for this on older generations now.

Signed-off-by: Joshua Ashton <joshua at froggi.es>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12974>

---

 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,



More information about the mesa-commit mailing list