summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-01-13 15:21:29 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-02-01 23:30:22 -0800
commit432ab001d042b816b5892398064e5735d0293955 (patch)
tree057545ead10efc37dd48cc7475e3c3e6d417f6e9 /src/gallium/drivers/r300
parentfbeeb6675733f5b2da36d40b0142dadf8cc953b4 (diff)
r300, amd: Add the ability to flush the CS.
This is probably important, yeah?
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/r300_cs.h3
-rw-r--r--src/gallium/drivers/r300/r300_winsys.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_cs.h b/src/gallium/drivers/r300/r300_cs.h
index 1422842e0c..bd392afca3 100644
--- a/src/gallium/drivers/r300/r300_cs.h
+++ b/src/gallium/drivers/r300/r300_cs.h
@@ -69,4 +69,7 @@
#define END_CS \
cs_winsys->end_cs(cs, __FILE__, __FUNCTION__, __LINE__)
+#define FLUSH_CS \
+ cs_winsys->flush_cs(cs)
+
#endif /* R300_CS_H */ \ No newline at end of file
diff --git a/src/gallium/drivers/r300/r300_winsys.h b/src/gallium/drivers/r300/r300_winsys.h
index 7048a9c88d..7711dc792d 100644
--- a/src/gallium/drivers/r300/r300_winsys.h
+++ b/src/gallium/drivers/r300/r300_winsys.h
@@ -74,6 +74,8 @@ struct r300_winsys {
const char* function,
int line);
+ /* Flush the CS. */
+ void (*flush_cs)(struct radeon_cs* cs);
};
struct pipe_context* r300_create_context(struct pipe_screen* screen,