llvmpipe: Enable LP_DEBUG on normal builds.

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>
This commit is contained in:
Emma Anholt 2023-02-02 11:28:59 -08:00 committed by Marge Bot
parent fd9b50aa1c
commit 947c60fa2f
2 changed files with 0 additions and 9 deletions

View file

@ -69,12 +69,7 @@
extern int LP_PERF;
#ifdef DEBUG
extern int LP_DEBUG;
#else
#define LP_DEBUG 0
#endif
void
st_debug_init(void);

View 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 );