summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_cs.h
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-01-24 03:34:17 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-02-01 23:30:28 -0800
commit902b1be0ea2a7fea27cea26915db5977f9a8f76c (patch)
tree5ce8cf1700b1a5d2102c06be53e51634ca00021f /src/gallium/drivers/r300/r300_cs.h
parente54732eb3db8452a99fcc2ad68fb644cecba6a20 (diff)
downloadexternal_mesa3d-902b1be0ea2a7fea27cea26915db5977f9a8f76c.zip
external_mesa3d-902b1be0ea2a7fea27cea26915db5977f9a8f76c.tar.gz
external_mesa3d-902b1be0ea2a7fea27cea26915db5977f9a8f76c.tar.bz2
r300: Add some useful debugging information; remove a couple compile warnings.
Deck chairs on the Titanic.
Diffstat (limited to 'src/gallium/drivers/r300/r300_cs.h')
-rw-r--r--src/gallium/drivers/r300/r300_cs.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_cs.h b/src/gallium/drivers/r300/r300_cs.h
index 67cb5ee..2dcb92d 100644
--- a/src/gallium/drivers/r300/r300_cs.h
+++ b/src/gallium/drivers/r300/r300_cs.h
@@ -67,6 +67,8 @@ static uint32_t pack_float_32(float f)
#define BEGIN_CS(size) do { \
CHECK_CS(size); \
+ debug_printf("r300: BEGIN_CS in %s (%s:%d)", __FUNCTION__, __FILE__, \
+ __LINE__); \
cs_winsys->begin_cs(cs, (size), __FILE__, __FUNCTION__, __LINE__); \
} while (0)
@@ -91,10 +93,16 @@ static uint32_t pack_float_32(float f)
cs_winsys->write_cs_reloc(cs, bo, rd, wd, flags); \
} while (0)
-#define END_CS \
- cs_winsys->end_cs(cs, __FILE__, __FUNCTION__, __LINE__)
+#define END_CS do { \
+ debug_printf("r300: END_CS in %s (%s:%d)", __FUNCTION__, __FILE__, \
+ __LINE__); \
+ cs_winsys->end_cs(cs, __FILE__, __FUNCTION__, __LINE__); \
+} while (0)
-#define FLUSH_CS \
- cs_winsys->flush_cs(cs)
+#define FLUSH_CS do { \
+ debug_printf("r300: FLUSH_CS in %s (%s:%d)", __FUNCTION__, __FILE__, \
+ __LINE__); \
+ cs_winsys->flush_cs(cs); \
+} while (0)
#endif /* R300_CS_H */