drm/i915: Calculate a new pipe_config based on new enabled state
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Tue, 21 Apr 2015 14:13:03 +0000 (17:13 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 May 2015 11:04:00 +0000 (13:04 +0200)
With the current implementation of intel_modeset_affected_pipes(), if a
pipe will be enabled then it is in modeset_pipes. We'll remove that mask
in a follow up patch, but want to preserve this behavior, so just make
that explicit.

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index 0d18a436e34ca88cc3508f6b9b5dc0838d4a09d7..aa445386b21f7f1af48a44361ee922a8610efa8f 100644 (file)
@@ -12220,7 +12220,7 @@ intel_modeset_compute_config(struct drm_crtc *crtc,
        if (IS_ERR(pipe_config))
                return pipe_config;
 
-       if (!(*modeset_pipes & (1 << to_intel_crtc(crtc)->pipe)))
+       if (!pipe_config->base.enable)
                return pipe_config;
 
        ret = intel_modeset_pipe_config(crtc, mode, state, pipe_config);