anv: throw anv_finishme warnings only on debug builds

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14259
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38369>
This commit is contained in:
Tapani Pälli 2025-11-11 12:44:16 +02:00 committed by Marge Bot
parent 0d9d45db4e
commit 12b2476b40

View file

@ -361,6 +361,7 @@ void __anv_perf_warn(struct anv_device *device,
/**
* Print a FINISHME message, including its source location.
*/
#if MESA_DEBUG
#define anv_finishme(format, ...) \
do { \
static bool reported = false; \
@ -370,6 +371,9 @@ void __anv_perf_warn(struct anv_device *device,
reported = true; \
} \
} while (0)
#else
#define anv_finishme(x, ...)
#endif
/**
* Print a perf warning message. Set INTEL_DEBUG=perf to see these.