diff --git a/src/gallium/drivers/llvmpipe/lp_perf.h b/src/gallium/drivers/llvmpipe/lp_perf.h index 15483cb0b52..8552b02b19d 100644 --- a/src/gallium/drivers/llvmpipe/lp_perf.h +++ b/src/gallium/drivers/llvmpipe/lp_perf.h @@ -75,7 +75,7 @@ extern struct lp_counters lp_count; /** Increment the named counter (only for debug builds) */ -#if MESA_DEBUG +#if MESA_DEBUG && !THREAD_SANITIZER #define LP_COUNT(counter) lp_count.counter++ #define LP_COUNT_ADD(counter, incr) lp_count.counter += (incr) #define LP_COUNT_GET(counter) (lp_count.counter) diff --git a/src/gallium/drivers/llvmpipe/lp_rast_priv.h b/src/gallium/drivers/llvmpipe/lp_rast_priv.h index fb7cd853afb..48407cef1b2 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast_priv.h +++ b/src/gallium/drivers/llvmpipe/lp_rast_priv.h @@ -45,7 +45,7 @@ /* If we crash in a jitted function, we can examine jit_line and jit_state * to get some info. This is not thread-safe, however. */ -#if MESA_DEBUG +#if MESA_DEBUG && !THREAD_SANITIZER struct lp_rasterizer_task; extern int jit_line;