tu: don't set startup debug on debug builds
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 9 Mar 2023 12:07:32 +0000 (07:07 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Mar 2023 19:48:24 +0000 (19:48 +0000)
this is incredibly annoying on normal linux systems

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

src/freedreno/vulkan/tu_util.c

index b03d384..6f74246 100644 (file)
@@ -47,14 +47,6 @@ tu_env_init_once(void)
     tu_env.debug = parse_debug_string(os_get_option("TU_DEBUG"),
             tu_debug_options);
 
-#ifdef DEBUG
-   /* Enable startup debugging by default on debug drivers.  You almost always
-    * want to see your startup failures in that case, and it's hard to set
-    * this env var on android.
-    */
-   tu_env.debug |= TU_DEBUG_STARTUP;
-#endif
-
    if (TU_DEBUG(STARTUP))
       mesa_logi("TU_DEBUG=0x%x", tu_env.debug);
 }