intel-dri: Fix initialization if startup happens in interlaced mode [v2]
Subsystems (2)
PATCH 1/1 intel-dri: Fix initialization if startup happens in interlaced mode [v2]
My EFI BIOS starts the graphics card up in my projector's preferred EDID mode, 1080@60i. The Intel driver does not clear the interlaced bit:
#define PIPECONF_PROGRESSIVE (0 << 21) #define PIPECONF_INTERLACE_W_FIELD_INDICATION (6 << 21) #define PIPECONF_INTERLACE_FIELD_0_ONLY (7 << 21)
This patch introduces a new PIPECONF_INTERLACE_MASK define and uses it to restore progressive mode.
Signed-of-by Christian Schmidt <[email protected]>
drivers/gpu/drm/i915/i915_reg.h +1 -0
@@ -2312,6 +2312,7 @@#define PIPECONF_PROGRESSIVE (0 << 21)#define PIPECONF_INTERLACE_W_FIELD_INDICATION (6 << 21)#define PIPECONF_INTERLACE_FIELD_0_ONLY (7 << 21) +#define PIPECONF_INTERLACE_MASK (7 << 21)#define PIPECONF_CXSR_DOWNCLOCK (1<<16)#define PIPECONF_BPP_MASK (0x000000e0)#define PIPECONF_BPP_8 (0<<5)
drivers/gpu/drm/i915/intel_display.c +1 -1
@@ -5136,7 +5136,7 @@ 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) |
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · Christian Schmidt
My EFI BIOS starts the graphics card up in my projector's preferred EDID mode, 1080@60i. The Intel driver does not clear the interlaced bit:
#define PIPECONF_PROGRESSIVE (0 << 21) #define PIPECONF_INTERLACE_W_FIELD_INDICATION (6 << 21) #define PIPECONF_INTERLACE_FIELD_0_ONLY (7 << 21)This patch introduces a new
PIPECONF_INTERLACE_MASKdefine and uses it to restore progressive mode.Signed-of-by Christian Schmidt <[email protected]>
Reviewed-by Chris Wilson <[email protected]>
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre