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>
This commit is contained in:
Chris Wilson 2012-05-30 14:44:59 +01:00
parent 3a64ba0895
commit cf5b3e2ebf
1 changed files with 1 additions and 1 deletions

View File

@ -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;