summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-21 15:43:32 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-21 15:45:39 +0100
commit2046a49be59866a16db776ba53a588dbf6c02b12 (patch)
tree182dafff70c234eae5c810d22a3fd26048dd4445
parentb3d3c0e8e75a963262e4dc463fef60d7e9f1f01a (diff)
sna: Clear the transform flag on disabling the CRTC
In places, we assume that if the flag is set, we must have an active CRTC. However, we were not clearing when disabling the CRTC. Reported-by: Sree Harsha Totakura <freedesktop@h.totakura.in> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80325 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_display.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index bc35a678..305bccf7 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -1410,7 +1410,10 @@ sna_crtc_disable(xf86CrtcPtr crtc)
sna->mode.dirty = true;
}
+ sna_crtc->transform = false;
+
assert(sna_crtc->dpms_mode == DPMSModeOff);
+ assert(!sna_crtc->shadow);
}
static void update_flush_interval(struct sna *sna)
@@ -6213,6 +6216,7 @@ void sna_mode_redisplay(struct sna *sna)
continue;
assert(crtc->enabled);
+ assert(sna_crtc->bo);
damage.extents = crtc->bounds;
damage.data = NULL;