summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_flush.c
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-07-01 23:25:47 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-07-01 23:25:47 -0700
commit96ef7aae1d58db2cbc2e46347aa87c34126983ef (patch)
tree1b13a66d28f61d6e2aacc69504b1ddcb3c5164c9 /src/gallium/drivers/r300/r300_flush.c
parent8799a9d24d3d409bb2b587f2c10f2ddae200c114 (diff)
r300g: Fix recursive Draw flush.
Also just noticed that demos/copypix walks around the overlapping blit rules. Bad, bad Mesa. :3
Diffstat (limited to 'src/gallium/drivers/r300/r300_flush.c')
-rw-r--r--src/gallium/drivers/r300/r300_flush.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_flush.c b/src/gallium/drivers/r300/r300_flush.c
index 89a5f2b20c..0dff1c6f4f 100644
--- a/src/gallium/drivers/r300/r300_flush.c
+++ b/src/gallium/drivers/r300/r300_flush.c
@@ -29,7 +29,11 @@ static void r300_flush(struct pipe_context* pipe,
struct r300_context* r300 = r300_context(pipe);
CS_LOCALS(r300);
- draw_flush(r300->draw);
+ /* We probably need to flush Draw, but we may have been called from
+ * within Draw. This feels kludgy, but it might be the best thing. */
+ if (!r300->draw->flushing) {
+ draw_flush(r300->draw);
+ }
if (r300->dirty_hw) {
FLUSH_CS;