summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_cb.h
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-06-22 06:41:15 +0200
committerMarek Olšák <maraeo@gmail.com>2010-06-22 06:50:23 +0200
commiteb7ef433bbbeabda963e74adf0ef61c47883f292 (patch)
treed3156aef99d24e5d4f287feaba065d4ace8b78d4 /src/gallium/drivers/r300/r300_cb.h
parentbd52246248b745fbf95e97ae188779474e212ff6 (diff)
r300g: optimize the immediate mode emission path a bit
Diffstat (limited to 'src/gallium/drivers/r300/r300_cb.h')
-rw-r--r--src/gallium/drivers/r300/r300_cb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_cb.h b/src/gallium/drivers/r300/r300_cb.h
index 9d3d4fc1b19..69874712442 100644
--- a/src/gallium/drivers/r300/r300_cb.h
+++ b/src/gallium/drivers/r300/r300_cb.h
@@ -89,6 +89,9 @@
CB_DEBUG(cs_count = size;) \
} while (0)
+#define BEGIN_CS_AS_CB(r300, size) \
+ BEGIN_CB(r300->rws->get_cs_pointer(r300->rws, dwords), dwords)
+
#define END_CB do { \
CB_DEBUG(if (cs_count != 0) \
debug_printf("r300: Warning: cs_count off by %d at (%s, %s:%i)\n", \