summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-05-07 19:51:04 +0100
committerOwain G. Ainsworth <oga@openbsd.org>2011-05-29 23:53:54 +0100
commit49939c8c560a37c4e4f090271a5f97291faefccb (patch)
tree6e24525e609cf18b6b5ae3c581ee00e5ff9fbfdc
parent7dd58c1b02f371bf49ee33ed56a9a690608a89ad (diff)
Ensure that the partial batch is flushed upon the blockhandler
Currently, we require that a batch containing a dirty bo be submitted before we mark the device as requiring a flush. So if we never submit a batch between block handlers, we can end up sleeping without ever flushing either the partial batch or the rendering to the scanout. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=36776 Tested-by: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (cherry picked from commit 3145530feed879082bcfab11ffc8e7fd0911c920) Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
-rw-r--r--src/intel_batchbuffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel_batchbuffer.h b/src/intel_batchbuffer.h
index 3022f254..6d119b2e 100644
--- a/src/intel_batchbuffer.h
+++ b/src/intel_batchbuffer.h
@@ -137,6 +137,8 @@ intel_batch_mark_pixmap_domains(intel_screen_private *intel,
priv->batch_write |= write_domain != 0;
priv->busy = 1;
+
+ intel->needs_flush |= write_domain != 0;
}
static inline void