mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-09 02:51:20 +00:00
drm/crtc_helper: NULL encoder->crtc when switching encoders
- Previously the old encoder would be called during modeset and without a connector bad things happened. Signed-off-by: Maarten Maathuis <madman2003@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
f380ef8691
commit
ff846ab7f7
@ -823,6 +823,10 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
|
||||
if (new_encoder != connector->encoder) {
|
||||
DRM_DEBUG_KMS("encoder changed, full mode switch\n");
|
||||
mode_changed = true;
|
||||
/* If the encoder is reused for another connector, then
|
||||
* the appropriate crtc will be set later.
|
||||
*/
|
||||
connector->encoder->crtc = NULL;
|
||||
connector->encoder = new_encoder;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user