summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-06-27 13:57:22 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-06-27 14:10:30 +0100
commit263e87d5e1915e6c40fa8bc1b325a36f21f92b30 (patch)
treef5a407dff73e776d6e65b89cf401dcf284eb2f4e
parent2f2f439c9cfdd394ad2b9a125db51e2dba7d3ff7 (diff)
sna: Set the current mode when initialising CRTCs
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_display.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index e1199d97..4bad2ea2 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -3013,6 +3013,13 @@ static bool sna_probe_initial_configuration(struct sna *sna)
crtc->desiredY = mode.y;
crtc->desiredTransformPresent = FALSE;
+ crtc->mode = crtc->desiredMode;
+ crtc->mode.name = NULL;
+ crtc->x = mode.x;
+ crtc->y = mode.y;
+ crtc->rotation = RR_Rotate_0;
+ crtc->transformPresent = FALSE;
+
memset(&crtc->panningTotalArea, 0, sizeof(BoxRec));
memset(&crtc->panningTrackingArea, 0, sizeof(BoxRec));
memset(crtc->panningBorder, 0, 4 * sizeof(INT16));