mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
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:
parent
0d9d45db4e
commit
12b2476b40
1 changed files with 4 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue