summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-06-21 21:57:21 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-06-21 21:57:21 +0100
commitc4d200517755e6b0f48d6c6a6ba8dd0ddc883d8b (patch)
treebbb6d37ac16984590715e835f0346486d19d968d
parentc942585098ac84ae461821cbb8f52dedce7a0da1 (diff)
Only append the pixmap to the flushing list if we are writing to it.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/i830_batchbuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_batchbuffer.h b/src/i830_batchbuffer.h
index ba03f6af..4315bbac 100644
--- a/src/i830_batchbuffer.h
+++ b/src/i830_batchbuffer.h
@@ -126,7 +126,7 @@ intel_batch_mark_pixmap_domains(intel_screen_private *intel,
if (list_is_empty(&priv->batch))
list_add(&priv->batch, &intel->batch_pixmaps);
- if (list_is_empty(&priv->flush))
+ if (write_domain && list_is_empty(&priv->flush))
list_add(&priv->flush, &intel->flush_pixmaps);
priv->batch_write |= write_domain != 0;