diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-05-30 14:44:59 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-05-30 14:44:59 +0100 |
commit | cf5b3e2ebf4ee0330f5421b9377bb512a94ec284 (patch) | |
tree | 7a9fc4e21a2ed9cb250c87ce23fff703809f23f6 | |
parent | 3a64ba0895035f6567e9a15357396b06c0f2d6dd (diff) |
sna: Don't attempt to flush scanout if unattached
This was lost in the midst of the OSTimer overhaul.
Reported-by: Zdenek Kabelac <zdenek.kabelac@gmail.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=50393
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |