From cf5b3e2ebf4ee0330f5421b9377bb512a94ec284 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 30 May 2012 14:44:59 +0100 Subject: sna: Don't attempt to flush scanout if unattached This was lost in the midst of the OSTimer overhaul. Reported-by: Zdenek Kabelac References: https://bugs.freedesktop.org/show_bug.cgi?id=50393 Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 8f2fdea9..ee2f69ae 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -11899,7 +11899,7 @@ static bool sna_accel_do_flush(struct sna *sna) struct sna_pixmap *priv; priv = sna_accel_scanout(sna); - if (priv == NULL) { + if (priv == NULL || priv->gpu_bo == NULL) { DBG(("%s -- no scanout attached\n", __FUNCTION__)); sna_accel_disarm_timer(sna, FLUSH_TIMER); return false; -- cgit v1.2.3