radv: Only create bvh pipelines when using rt
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Thu, 1 Dec 2022 19:02:08 +0000 (20:02 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Dec 2022 21:14:00 +0000 (21:14 +0000)
Saves some time when creating non-rt devices.

Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20110>

src/amd/vulkan/radv_meta.c

index c628bd3..e8980d0 100644 (file)
@@ -478,7 +478,7 @@ radv_device_init_meta(struct radv_device *device)
          goto fail_fmask_copy;
    }
 
-   if (radv_enable_rt(device->physical_device, false)) {
+   if (device->vk.enabled_extensions.KHR_acceleration_structure) {
       result = radv_device_init_accel_struct_build_state(device);
       if (result != VK_SUCCESS)
          goto fail_accel_struct_build;