Revert "Revert "radv: Enable ray tracing pipelines by default""
authorFriedrich Vock <friedrich.vock@gmx.de>
Mon, 3 Jul 2023 17:54:38 +0000 (19:54 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 8 Jul 2023 10:10:15 +0000 (10:10 +0000)
This reverts commit 49b400423ce2ac3f0d868a38a51bcd9d02cccd1b.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23978>

docs/envvars.rst
src/amd/ci/gitlab-ci.yml
src/amd/vulkan/radv_debug.h
src/amd/vulkan/radv_instance.c
src/amd/vulkan/radv_rt_common.c
src/util/00-radv-defaults.conf
src/util/driconf.h

index d7bda3a..c4f61ff 100644 (file)
@@ -1269,8 +1269,6 @@ RADV driver environment variables
       enable NGG streamout
    ``nggc``
       enable NGG culling on GPUs where it's not enabled by default (GFX10.1 only).
-   ``rt``
-      enable rt pipelines whose implementation is still experimental.
    ``sam``
       enable optimizations to move more driver internal objects to VRAM.
    ``rtwave64``
index f0e96d3..c155f2f 100644 (file)
@@ -401,7 +401,6 @@ vkcts-navi21-valve:
     - .navi21-test-valve
   variables:
     GPU_VERSION: radv-navi21-aco
-    RADV_PERFTEST: rt
 
 # Disabled due to its extremelly-broken nature
 .vkcts-navi21-llvm-valve:
@@ -520,7 +519,6 @@ vkd3d-navi21-valve:
     - .radv-valve-manual-rules
   variables:
     VKD3D_PROTON_RESULTS: radv-navi21-vkd3d
-    RADV_PERFTEST: rt
     VKD3D_CONFIG: dxr11
 
 vkd3d-vangogh-valve:
index ea85539..dc78eda 100644 (file)
@@ -83,13 +83,12 @@ enum {
    RADV_PERFTEST_GE_WAVE_32 = 1u << 5,
    RADV_PERFTEST_NO_SAM = 1u << 6,
    RADV_PERFTEST_SAM = 1u << 7,
-   RADV_PERFTEST_RT = 1u << 8,
-   RADV_PERFTEST_NGGC = 1u << 9,
-   RADV_PERFTEST_EMULATE_RT = 1u << 10,
-   RADV_PERFTEST_RT_WAVE_64 = 1u << 11,
-   RADV_PERFTEST_NGG_STREAMOUT = 1u << 12,
-   RADV_PERFTEST_VIDEO_DECODE = 1u << 13,
-   RADV_PERFTEST_DMA_SHADERS = 1u << 14,
+   RADV_PERFTEST_NGGC = 1u << 8,
+   RADV_PERFTEST_EMULATE_RT = 1u << 9,
+   RADV_PERFTEST_RT_WAVE_64 = 1u << 10,
+   RADV_PERFTEST_NGG_STREAMOUT = 1u << 11,
+   RADV_PERFTEST_VIDEO_DECODE = 1u << 12,
+   RADV_PERFTEST_DMA_SHADERS = 1u << 13,
 };
 
 bool radv_init_trace(struct radv_device *device);
index b51072c..31e06ca 100644 (file)
@@ -94,7 +94,6 @@ static const struct debug_control radv_perftest_options[] = {{"localbos", RADV_P
                                                              {"gewave32", RADV_PERFTEST_GE_WAVE_32},
                                                              {"nosam", RADV_PERFTEST_NO_SAM},
                                                              {"sam", RADV_PERFTEST_SAM},
-                                                             {"rt", RADV_PERFTEST_RT},
                                                              {"nggc", RADV_PERFTEST_NGGC},
                                                              {"emulate_rt", RADV_PERFTEST_EMULATE_RT},
                                                              {"rtwave64", RADV_PERFTEST_RT_WAVE_64},
@@ -149,7 +148,6 @@ static const driOptionDescription radv_dri_options[] = {
       DRI_CONF_RADV_FLUSH_BEFORE_QUERY_COPY(false)
       DRI_CONF_RADV_ENABLE_UNIFIED_HEAP_ON_APU(false)
       DRI_CONF_RADV_TEX_NON_UNIFORM(false)
-      DRI_CONF_RADV_RT(false)
       DRI_CONF_RADV_FLUSH_BEFORE_TIMESTAMP_WRITE(false)
       DRI_CONF_RADV_RT_WAVE64(false)
       DRI_CONF_RADV_APP_LAYER()
index 9c75479..af96345 100644 (file)
@@ -38,13 +38,8 @@ radv_enable_rt(const struct radv_physical_device *pdevice, bool rt_pipelines)
    if (pdevice->rad_info.gfx_level < GFX10_3 && !radv_emulate_rt(pdevice))
       return false;
 
-   if (rt_pipelines) {
-      if (pdevice->use_llvm)
-         return false;
-
-      return (pdevice->instance->perftest_flags & RADV_PERFTEST_RT) ||
-             driQueryOptionb(&pdevice->instance->dri_options, "radv_rt");
-   }
+   if (rt_pipelines && pdevice->use_llvm)
+      return false;
 
    return true;
 }
index 7ff99aa..9040034 100644 (file)
@@ -113,7 +113,6 @@ Application bugs worked around in this file:
 
         <application name="DOOM Eternal" application_name_match="DOOMEternal">
             <option name="radv_zero_vram" value="true" />
-            <option name="radv_rt" value="true" />
         </application>
 
         <application name="No Man's Sky" application_name_match="No Man's Sky">
@@ -144,14 +143,6 @@ Application bugs worked around in this file:
             <option name="radv_enable_unified_heap_on_apu" value="true" />
         </application>
 
-        <application name="Quake II RTX" application_name_match="quake 2 pathtracing">
-            <option name="radv_rt" value="true" />
-        </application>
-
-        <application name="Control (DX12)" application_name_match="Control_DX12.exe">
-            <option name="radv_rt" value="true" />
-        </application>
-
         <application name="Metro Exodus (Linux native)" application_name_match="metroexodus">
             <option name="radv_app_layer" value="metroexodus" />
         </application>
index ab7aa2c..2152b96 100644 (file)
    DRI_CONF_OPT_B(radv_tex_non_uniform, def, \
                   "Always mark texture sample operations as non-uniform.")
 
-#define DRI_CONF_RADV_RT(def) \
-   DRI_CONF_OPT_B(radv_rt, def, \
-                  "Expose support for VK_KHR_ray_tracing_pipeline")
-
 #define DRI_CONF_RADV_FLUSH_BEFORE_TIMESTAMP_WRITE(def) \
    DRI_CONF_OPT_B(radv_flush_before_timestamp_write, def, \
                   "Wait for previous commands to finish before writing timestamps")