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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user