summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-06-21 21:57:21 +0100
committerOwain G. Ainsworth <oga@openbsd.org>2010-06-21 22:39:22 +0100
commitf129695698d55d82b9260a2d3c7ac211774b6954 (patch)
treea4973d9bf40bdbeafc039b507209ce2249f56c17
parente54b989fe98325338ef6601db21d5b1f7875eeb2 (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> (cherry picked from commit c4d200517755e6b0f48d6c6a6ba8dd0ddc883d8b) Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
-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 62c42b5e..30680855 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;