aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-04-25 16:52:18 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-04-30 10:16:47 -0400
commit5a80c45c5297a025c2615624042ea8b6840a5376 (patch)
tree46a2e6db83dd7bcd47d6b277070c0cf75ac99601 /drivers/gpu/drm/i915/intel_display.c
parent2deefda541edb0c73e57e988ccaac4cd014da0d3 (diff)
drm/i915: move border color writes to pfit_enable
Writing hw registers from compute_config? Just say no! In this case not too horrible since we write a constant 0, and only debugging would put something else in there. But while checking that code I've noticed that this register disappeared on pch platforms, so fix that up, too. And adjust the comment a bit, it's outdated. Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 9b0d6b03aa1c..650433790813 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -3632,6 +3632,10 @@ static void i9xx_pfit_enable(struct intel_crtc *crtc)
3632 3632
3633 I915_WRITE(PFIT_PGM_RATIOS, pipe_config->gmch_pfit.pgm_ratios); 3633 I915_WRITE(PFIT_PGM_RATIOS, pipe_config->gmch_pfit.pgm_ratios);
3634 I915_WRITE(PFIT_CONTROL, pipe_config->gmch_pfit.control); 3634 I915_WRITE(PFIT_CONTROL, pipe_config->gmch_pfit.control);
3635
3636 /* Border color in case we don't scale up to the full screen. Black by
3637 * default, change to something else for debugging. */
3638 I915_WRITE(BCLRPAT(crtc->pipe), 0);
3635} 3639}
3636 3640
3637static void valleyview_crtc_enable(struct drm_crtc *crtc) 3641static void valleyview_crtc_enable(struct drm_crtc *crtc)