crocus: silence perf_debug -Waddress warnings

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36413>
This commit is contained in:
Mike Blumenkrantz 2025-07-28 11:35:14 -04:00 committed by Marge Bot
parent 7d2b36e50f
commit 1dae42308b

View file

@ -756,9 +756,10 @@ struct crocus_context {
};
#define perf_debug(dbg, ...) do { \
void *__var = (void*)(dbg); \
if (INTEL_DEBUG(DEBUG_PERF)) \
dbg_printf(__VA_ARGS__); \
if (unlikely(dbg)) \
if (unlikely(__var)) \
util_debug_message(dbg, PERF_INFO, __VA_ARGS__); \
} while(0)