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>
extern int LP_PERF;
-#ifdef DEBUG
extern int LP_DEBUG;
-#else
-#define LP_DEBUG 0
-#endif
-
void
st_debug_init(void);
#include "nir.h"
-#ifdef DEBUG
int LP_DEBUG = 0;
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[] = {
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 );