[Intel-gfx] [PATCH 2/2] drm/i915: Remove the double handling of 'flags from intel_mode_from_pipe_config()

ville.syrjala at linux.intel.com ville.syrjala at linux.intel.com
Thu Dec 22 14:04:42 UTC 2016


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

We're trying to copy the flags from the adjusted mode to the
passed in mode twice. Once is enough.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 drivers/gpu/drm/i915/intel_display.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 091c192c6c5c..e4c573322b6c 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -8404,7 +8404,6 @@ void intel_mode_from_pipe_config(struct drm_display_mode *mode,
 	mode->type = DRM_MODE_TYPE_DRIVER;
 
 	mode->clock = pipe_config->base.adjusted_mode.crtc_clock;
-	mode->flags |= pipe_config->base.adjusted_mode.flags;
 
 	mode->hsync = drm_mode_hsync(mode);
 	mode->vrefresh = drm_mode_vrefresh(mode);
-- 
2.10.2



More information about the Intel-gfx mailing list