sna: Explicitly disable unused CRTC

This should be performed via DisableUnusedFunctions, but whilst we are
sanity checking, checking that the CRTC we believe to be off actually
are seems worthwhile.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2017-02-01 10:00:52 +00:00
parent fe0846b1e1
commit 9fe04af4bc
1 changed files with 3 additions and 1 deletions

View File

@ -5259,8 +5259,10 @@ static bool disable_unused_crtc(struct sna *sna)
for (c = 0; c < sna->mode.num_real_crtc; c++) { for (c = 0; c < sna->mode.num_real_crtc; c++) {
xf86CrtcPtr crtc = config->crtc[c]; xf86CrtcPtr crtc = config->crtc[c];
if (!crtc->enabled) if (!crtc->enabled) {
sna_crtc_disable(crtc, false);
continue; continue;
}
for (o = 0; o < sna->mode.num_real_output; o++) { for (o = 0; o < sna->mode.num_real_output; o++) {
xf86OutputPtr output = config->output[o]; xf86OutputPtr output = config->output[o];