From 627ef68a8cd7a51627d5b6a98cb0a5bdb1d9b534 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 31 Oct 2015 09:27:35 +0000 Subject: 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 --- src/sna/sna_display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3