diff mbox

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

Message ID 1476131459-23763-2-git-send-email-paulo.r.zanoni@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Zanoni, Paulo R Oct. 10, 2016, 8:30 p.m. UTC
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: Paulo Zanoni <paulo.r.zanoni@intel.com>
---
 drivers/gpu/drm/i915/intel_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

cpaul@redhat.com Oct. 10, 2016, 8:55 p.m. UTC | #1
Reviewed-by: Lyude <cpaul@redhat.com>

On Mon, 2016-10-10 at 17:30 -0300, Paulo Zanoni wrote:
> 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: Paulo Zanoni <paulo.r.zanoni@intel.com>
> ---
>  drivers/gpu/drm/i915/intel_pm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_pm.c
> b/drivers/gpu/drm/i915/intel_pm.c
> index 159831d..4b7de7a 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -3037,7 +3037,7 @@ bool intel_can_enable_sagv(struct
> drm_atomic_state *state)
>  	pipe = ffs(intel_state->active_crtcs) - 1;
>  	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;
>  
>  	for_each_intel_plane_on_crtc(dev, crtc, plane) {
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 159831d..4b7de7a 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -3037,7 +3037,7 @@  bool intel_can_enable_sagv(struct drm_atomic_state *state)
 	pipe = ffs(intel_state->active_crtcs) - 1;
 	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;
 
 	for_each_intel_plane_on_crtc(dev, crtc, plane) {