From f129695698d55d82b9260a2d3c7ac211774b6954 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 21 Jun 2010 21:57:21 +0100 Subject: Only append the pixmap to the flushing list if we are writing to it. Signed-off-by: Chris Wilson (cherry picked from commit c4d200517755e6b0f48d6c6a6ba8dd0ddc883d8b) Signed-off-by: Owain G. Ainsworth --- src/i830_batchbuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3