Skip to contentSkip to conversation

Fix another use of the wrong interlace mask to return to progressive mode

PATCH In review Christian Schmidt 2 participants 2 messages Feb 24, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix another use of the wrong interlace mask to return to progressive mode

intel_display.c:            pipeconf |= PIPECONF_INTERLACE_W_FIELD_INDICATION;
intel_display.c:            pipeconf &= ~PIPECONF_INTERLACE_MASK; /* progressive */
intel_display.c:            pipeconf |= PIPECONF_INTERLACE_W_FIELD_INDICATION;
intel_display.c:            pipeconf &= ~PIPECONF_INTERLACE_W_FIELD_INDICATION; /* progressive */

The second setting of progressive mode should use PIPECONF_INTERLACE_MASK, too.

---
 drivers/gpu/drm/i915/intel_display.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/i915/intel_display.c +1 -1
index 56a8554..3a3ca1a 100644
@@ -5048,7 +5048,7 @@ static int i9xx_crtc_mode_set(struct drm_crtc *crtc,
 		adjusted_mode->crtc_vsync_end -= 1;
 		adjusted_mode->crtc_vsync_start -= 1;
 	} else
-		pipeconf &= ~PIPECONF_INTERLACE_W_FIELD_INDICATION; /* progressive */
+		pipeconf &= ~PIPECONF_INTERLACE_MASK; /* progressive */
 
 	I915_WRITE(HTOTAL(pipe),
 		   (adjusted_mode->crtc_hdisplay - 1) |
Signature · 1 line
1.7.8.3
#1 lore raw
Quoted 8 lines · Christian Schmidt
intel_display.c:            pipeconf |= PIPECONF_INTERLACE_W_FIELD_INDICATION;
intel_display.c:            pipeconf &= ~PIPECONF_INTERLACE_MASK; /* progressive */
intel_display.c:            pipeconf |= PIPECONF_INTERLACE_W_FIELD_INDICATION;
intel_display.c:            pipeconf &= ~PIPECONF_INTERLACE_W_FIELD_INDICATION; /* progressive */

The second setting of progressive mode should use PIPECONF_INTERLACE_MASK, too.

Already fixed in -fixes. Furthermore we have (hopefully) fully working interlaced support merged into -next (already pushed out to Dave's drm-next tree).
-Daniel

Signature · 3 lines
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48