drm/i915: Fix fastboot scalers for skylake.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 14 Sep 2015 09:30:10 +0000 (11:30 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 23 Sep 2015 12:39:16 +0000 (14:39 +0200)
The scaler_id in intel_pipe_config_compare should not be checked
when adjusting in intel_pipe_config_compare. The hw scaler id may
be changed in intel_update_pipe_config.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index 8db2b13499bad6e0ecec340dd2f7c3169d07ba3f..6d718c0c3bebf2de53e72efea22155c092644023 100644 (file)
@@ -12459,9 +12459,9 @@ intel_pipe_config_compare(struct drm_device *dev,
                        PIPE_CONF_CHECK_X(pch_pfit.pos);
                        PIPE_CONF_CHECK_X(pch_pfit.size);
                }
-       }
 
-       PIPE_CONF_CHECK_I(scaler_state.scaler_id);
+               PIPE_CONF_CHECK_I(scaler_state.scaler_id);
+       }
 
        /* BDW+ don't expose a synchronous way to read the state */
        if (IS_HASWELL(dev))