llvmpipe: Enable LP_DEBUG on normal builds.
authorEmma Anholt <emma@anholt.net>
Thu, 2 Feb 2023 19:28:59 +0000 (11:28 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 3 Feb 2023 18:21:49 +0000 (18:21 +0000)
I don't typically include DEBUG because it sometimes has expensive debug
code, but these options are not that.

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

src/gallium/drivers/llvmpipe/lp_debug.h
src/gallium/drivers/llvmpipe/lp_screen.c

index 4f4fc52..d552aa9 100644 (file)
 
 extern int LP_PERF;
 
-#ifdef DEBUG
 extern int LP_DEBUG;
-#else
-#define LP_DEBUG 0
-#endif
-
 
 void
 st_debug_init(void);
index 8e80215..f8e85c0 100644 (file)
@@ -58,7 +58,6 @@
 #include "nir.h"
 
 
-#ifdef DEBUG
 int LP_DEBUG = 0;
 
 static const struct debug_named_value lp_debug_flags[] = {
@@ -82,7 +81,6 @@ static const struct debug_named_value lp_debug_flags[] = {
    { "accurate_a0", DEBUG_ACCURATE_A0 },
    DEBUG_NAMED_VALUE_END
 };
-#endif
 
 int LP_PERF = 0;
 static const struct debug_named_value lp_perf_flags[] = {
@@ -1041,9 +1039,7 @@ llvmpipe_create_screen(struct sw_winsys *winsys)
 
    glsl_type_singleton_init_or_ref();
 
-#ifdef DEBUG
    LP_DEBUG = debug_get_flags_option("LP_DEBUG", lp_debug_flags, 0 );
-#endif
 
    LP_PERF = debug_get_flags_option("LP_PERF", lp_perf_flags, 0 );