From 12b2476b40b8d31416de7de439a4548319c25c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Tue, 11 Nov 2025 12:44:16 +0200 Subject: [PATCH] anv: throw anv_finishme warnings only on debug builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14259 Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_private.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index f34ec23f0d0..830f1881113 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -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.