summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-10-31 09:27:35 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-10-31 09:27:35 +0000
commit627ef68a8cd7a51627d5b6a98cb0a5bdb1d9b534 (patch)
tree3a172a011af6be4b732c637ded4ff43671e53854
parent0fa1c696b477d53326bab41d254ffcc8a6fa46f4 (diff)
sna: Don't extend the display mode cache for an unknown output
When we enable the outputs initially, they only have the desired mode inherited from fbcon and have not do a full detect pass. For these we do not wish to extend the display mode cache on the output. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_display.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 868d6087..cb77b6fd 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -1051,7 +1051,8 @@ sna_crtc_force_outputs_on(xf86CrtcPtr crtc)
continue;
__sna_output_dpms(output, DPMSModeOn, false);
- to_sna_output(output)->last_detect = now;
+ if (to_sna_output(output)->last_detect)
+ to_sna_output(output)->last_detect = now;
}
#if XF86_CRTC_VERSION >= 3