Commit 4af67d41 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter

drm/i915: Check the clock from adjusted mode in intel_crtc_active()

The clock in crtc->mode doesn't necessarily mean anything. Let's look
at the clock in adjusted_mode instead.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 4fe8590a
...@@ -45,10 +45,13 @@ ...@@ -45,10 +45,13 @@
static bool intel_crtc_active(struct drm_crtc *crtc) 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 /* Be paranoid as we can arrive here with only partial
* state retrieved from the hardware during setup. * 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) static void i8xx_disable_fbc(struct drm_device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment