aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-11-24 18:18:14 +0000
committerEmil Velikov <[email protected]>2016-11-28 19:12:48 +0000
commitf3a1c17b96ad797735214d2012b1436af9cb46d4 (patch)
tree4c1bc5cc7a8fec7e02a7921540a39553e97ebf75 /src/amd/vulkan
parent7feac8bdb9d8f76f20e41e3b0314168738dd37fd (diff)
radv: Make radv_finishme only warn once per call-site
Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r--src/amd/vulkan/radv_private.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index a5d13a9239a..def0af2069d 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -211,7 +211,13 @@ void radv_loge_v(const char *format, va_list va);
* Print a FINISHME message, including its source location.
*/
#define radv_finishme(format, ...) \
- __radv_finishme(__FILE__, __LINE__, format, ##__VA_ARGS__);
+ do { \
+ static bool reported = false; \
+ if (!reported) { \
+ __radv_finishme(__FILE__, __LINE__, format, ##__VA_ARGS__); \
+ reported = true; \
+ } \
+ } while (0)
/* A non-fatal assert. Useful for debugging. */
#ifdef DEBUG