summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-03-04 13:05:33 -0700
committerBrian Paul <[email protected]>2016-03-05 09:20:28 -0700
commitb6a607b2211d9091252fb1a85e7162fe6775dafa (patch)
treeaacbbcccaa2ccea8a38abf9915cea52cf9857bf7 /src/gallium/auxiliary
parentcbca6964e2dabbb9d74ae24ebb67f189132cbaae (diff)
gallium/util: update comments and URL in u_debug_refcnt.c
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_debug_refcnt.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/util/u_debug_refcnt.c b/src/gallium/auxiliary/util/u_debug_refcnt.c
index f486492b3cd..97a4786b86f 100644
--- a/src/gallium/auxiliary/util/u_debug_refcnt.c
+++ b/src/gallium/auxiliary/util/u_debug_refcnt.c
@@ -26,9 +26,14 @@
#if defined(DEBUG)
-/* see http://www.mozilla.org/performance/refcnt-balancer.html for what do with the output
- * on Linux, use tools/addr2line.sh to postprocess it before anything else
- **/
+/**
+ * If the GALLIUM_REFCNT_LOG env var is defined as a filename, gallium
+ * reference counting will be logged to the file.
+ *
+ * See http://www-archive.mozilla.org/performance/refcnt-balancer.html
+ * for what to do with the output on Linux, use tools/addr2line.sh to
+ * postprocess it before anything else.
+ */
#include <stdio.h>
@@ -201,4 +206,5 @@ debug_reference_slowpath(const struct pipe_reference *p,
fflush(stream);
}
}
-#endif
+
+#endif /* DEBUG */