projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
371ca68
)
r300g: more informative warning in END_CS
author
Marek Olšák
<maraeo@gmail.com>
Sat, 19 Jun 2010 02:55:24 +0000
(
04:55
+0200)
committer
Marek Olšák
<maraeo@gmail.com>
Sat, 19 Jun 2010 03:15:07 +0000
(
05:15
+0200)
src/gallium/drivers/r300/r300_cs.h
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_cs.h
b/src/gallium/drivers/r300/r300_cs.h
index 030fad3772fd1452054c142924296334e628905b..1db7da642bd89af4027acf30766f8a44b1c06b36 100644
(file)
--- a/
src/gallium/drivers/r300/r300_cs.h
+++ b/
src/gallium/drivers/r300/r300_cs.h
@@
-55,12
+55,16
@@
CS_DEBUG(cs_count = size;) \
} while (0)
+#ifdef DEBUG
#define END_CS do { \
- CS_DEBUG(if (cs_count != 0) \
- debug_printf("r300: Warning: cs_count off by %d\n", cs_count);) \
- CS_DEBUG(cs_count = 0;) \
+ if (cs_count != 0) \
+ debug_printf("r300: Warning: cs_count off by %d at (%s, %s:%i)\n", \
+ cs_count, __FUNCTION__, __FILE__, __LINE__); \
+ cs_count = 0; \
} while (0)
-
+#else
+#define END_CS
+#endif
/**
* Writing pure DWORDs.