projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd43bee
)
anv: Define macro anv_debug()
author
Chad Versace
<chadversary@chromium.org>
Wed, 25 Jan 2017 20:12:16 +0000
(12:12 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Thu, 26 Jan 2017 03:17:45 +0000
(19:17 -0800)
This is a printf-like macro that prints a debug message to stderr when
built with DEBUG. If no DEBUG, then do nothing.
Reviewed-by: Jason Ekstranad <jason@jlekstrand.net>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_private.h
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_private.h
b/src/intel/vulkan/anv_private.h
index 75f2bde66a8a4e77cdd5fcece3e2ecef46ae3f6d..de50dff1a84bd0e5584ab13bfef4c8441d369f41 100644
(file)
--- a/
src/intel/vulkan/anv_private.h
+++ b/
src/intel/vulkan/anv_private.h
@@
-199,9
+199,11
@@
VkResult __vk_errorf(VkResult error, const char *file, int line, const char *for
#ifdef DEBUG
#define vk_error(error) __vk_errorf(error, __FILE__, __LINE__, NULL);
#define vk_errorf(error, format, ...) __vk_errorf(error, __FILE__, __LINE__, format, ## __VA_ARGS__);
+#define anv_debug(format, ...) fprintf(stderr, "debug: " format, ##__VA_ARGS__)
#else
#define vk_error(error) error
#define vk_errorf(error, format, ...) error
+#define anv_debug(format, ...)
#endif
void __anv_finishme(const char *file, int line, const char *format, ...)