}
intel_dump_pipe_config(to_intel_crtc(crtc), pipe_config,
"[modeset]");
- to_intel_crtc(crtc)->new_config = pipe_config;
out:
return pipe_config;
*saved_mode = crtc->mode;
+ if (modeset_pipes)
+ to_intel_crtc(crtc)->new_config = pipe_config;
+
/*
* See if the config requires any additional preparation, e.g.
* to adjust global state with pipes off. We need to do this
ret = PTR_ERR(pipe_config);
goto fail;
} else if (pipe_config) {
- if (to_intel_crtc(set->crtc)->new_config->has_audio !=
+ if (pipe_config->has_audio !=
to_intel_crtc(set->crtc)->config.has_audio)
config->mode_changed = true;
/* Force mode sets for any infoframe stuff */
- if (to_intel_crtc(set->crtc)->new_config->has_infoframe ||
+ if (pipe_config->has_infoframe ||
to_intel_crtc(set->crtc)->config.has_infoframe)
config->mode_changed = true;
}