提交 c89cadd5 编写于 作者: P Paulo Zanoni

drm/i915/gen9: look for adjusted_mode in the SAGV check for interlaced

We want to look at the mode that we're actually going to set. All the
other display checks for interlaced flags also look at adjusted_mode.

Cc: Lyude <cpaul@redhat.com>
Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: NLyude <cpaul@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1476131459-23763-2-git-send-email-paulo.r.zanoni@intel.com
上级 ee3d532f
...@@ -3041,7 +3041,7 @@ bool intel_can_enable_sagv(struct drm_atomic_state *state) ...@@ -3041,7 +3041,7 @@ bool intel_can_enable_sagv(struct drm_atomic_state *state)
pipe = ffs(intel_state->active_crtcs) - 1; pipe = ffs(intel_state->active_crtcs) - 1;
crtc = to_intel_crtc(dev_priv->pipe_to_crtc_mapping[pipe]); crtc = to_intel_crtc(dev_priv->pipe_to_crtc_mapping[pipe]);
if (crtc->base.state->mode.flags & DRM_MODE_FLAG_INTERLACE) if (crtc->base.state->adjusted_mode.flags & DRM_MODE_FLAG_INTERLACE)
return false; return false;
for_each_intel_plane_on_crtc(dev, crtc, plane) { for_each_intel_plane_on_crtc(dev, crtc, plane) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册