On Wed, Sep 04, 2013 at 06:25:23PM +0300, [email protected] wrote:
> From: Ville Syrjälä <[email protected]>
> 
> The clock in crtc->mode doesn't necessarily mean anything. Let's look
> at the clock in adjusted_mode instead.
> 
> Signed-off-by: Ville Syrjälä <[email protected]>

Reviewed-by: Damien Lespiau <[email protected]>

-- 
Damien

> ---
>  drivers/gpu/drm/i915/intel_pm.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 48d93d3..397628b 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -45,10 +45,13 @@
>  
>  static bool intel_crtc_active(struct drm_crtc *crtc)
>  {
> +     struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
> +
>       /* Be paranoid as we can arrive here with only partial
>        * state retrieved from the hardware during setup.
>        */
> -     return to_intel_crtc(crtc)->active && crtc->fb && crtc->mode.clock;
> +     return intel_crtc->active && crtc->fb &&
> +             intel_crtc->config.adjusted_mode.clock;
>  }
>  
>  static void i8xx_disable_fbc(struct drm_device *dev)
> -- 
> 1.8.1.5
> 
> _______________________________________________
> Intel-gfx mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to