sna: Only override active on DPMSModeOff

Along the enable path we then only want to change the value if we
actually call sna_crtc_apply.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-05-21 19:48:52 +01:00
parent afdaf18459
commit 952e3dcba3
1 changed files with 2 additions and 1 deletions

View File

@ -511,9 +511,10 @@ sna_crtc_dpms(xf86CrtcPtr crtc, int mode)
DBG(("%s(pipe %d, dpms mode -> %d):= active=%d\n",
__FUNCTION__, sna_crtc->pipe, mode, mode == DPMSModeOn));
sna_crtc->active = false;
if (mode != DPMSModeOff)
sna_crtc_restore(sna_crtc->sna);
else
sna_crtc->active = false;
}
static struct kgem_bo *sna_create_bo_for_fbcon(struct sna *sna,