util: Gate simple_mtx_assert_locked on !NDEBUG

..Instead of DEBUG so these work in debugoptimized builds.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Acked-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17408>
This commit is contained in:
Alyssa Rosenzweig
2022-07-07 18:01:34 -04:00
committed by Marge Bot
parent ed06b3dd49
commit f7e1eccf5e
+1 -1
View File
@@ -168,7 +168,7 @@ simple_mtx_unlock(simple_mtx_t *mtx)
static inline void
simple_mtx_assert_locked(simple_mtx_t *mtx)
{
#ifdef DEBUG
#ifndef NDEBUG
/* NOTE: this would not work for recursive mutexes, but
* mtx_t doesn't support those
*/