sna: Update the last known status timestamp on modeset

If the modeset is successful we know the connector is still alive, so
update its timestamp.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-09-13 20:07:35 +01:00
parent 717b6208d0
commit 23986f0a31
1 changed files with 3 additions and 0 deletions

View File

@ -953,6 +953,8 @@ static void
sna_crtc_force_outputs_on(xf86CrtcPtr crtc)
{
xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(crtc->scrn);
/* All attached outputs are valid, so update our timestamps */
unsigned now = GetTimeInMillis();
int i;
assert(to_sna_crtc(crtc));
@ -972,6 +974,7 @@ sna_crtc_force_outputs_on(xf86CrtcPtr crtc)
continue;
__sna_output_dpms(output, DPMSModeOn, false);
to_sna_output(output)->last_detect = now;
}
#if XF86_CRTC_VERSION >= 3