summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-03-27 00:44:59 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-03-28 01:09:34 +0100
commit3600836585e3fdef0a1410d63fe5ce4015007aac (patch)
tree21c28335d65a83913e8d187ba24cb67f452e1d9f /drivers/gpu/drm/i915/intel_display.c
parent4e53c2e010e531b4a014692199e978482d471c7e (diff)
drm/i915: convert DP autodither code to new infrastructure
The old code only handled either 6bpc or 8bpc. Since it's easy to do, reorganize the code to be a bit more generic so that it can also handle 10bpc and 12bpc. Note that we still start with 8bpc, so there's no functional change. Also, since we no don't need to compute the 6BPC flag in the mode_valid callback, we can consolidate things a bit. That requires though that the link bw computation is moved up in the compute_config callback. Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> 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, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 14397726d3ac..e95c469afa6d 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -7485,10 +7485,6 @@ intel_modeset_pipe_config(struct drm_crtc *crtc,
}
}
- /* temporary hack until the DP code doesn't use the 6BPC flag any more */
- if (pipe_config->adjusted_mode.private_flags & INTEL_MODE_DP_FORCE_6BPC)
- pipe_config->pipe_bpp = 6*8;
-
if (!(intel_crtc_compute_config(crtc, pipe_config))) {
DRM_DEBUG_KMS("CRTC fixup failed\n");
goto fail;