radv/rt: Enable RT pipelines on GFX10_3+ excluding vangogh
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Thu, 15 Jun 2023 15:17:35 +0000 (17:17 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 16 Jun 2023 16:13:34 +0000 (16:13 +0000)
Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23677>

src/amd/vulkan/radv_rt_common.c

index 415f86a..1bab37f 100644 (file)
@@ -42,6 +42,12 @@ radv_enable_rt(const struct radv_physical_device *pdevice, bool rt_pipelines)
       if (pdevice->use_llvm)
          return false;
 
+      /* TODO: Enable ray tracing pipelines by default, once
+       * https://gitlab.freedesktop.org/mesa/mesa/-/issues/9208 is resolved.
+       */
+      if (pdevice->rad_info.family != CHIP_VANGOGH)
+         return true;
+
       return (pdevice->instance->perftest_flags & RADV_PERFTEST_RT) ||
              driQueryOptionb(&pdevice->instance->dri_options, "radv_rt");
    }