[Intel-gfx] [RFC 5/8] drm/i915/bxt: Program MIPI_DPI_RESOLUTION for DSC
vikas.korjani at intel.com
vikas.korjani at intel.com
Wed Aug 12 02:53:50 PDT 2015
From: vkorjani <vikas.korjani at intel.com>
Program the MIPI_DPI_RESOLUTION register horizontal
resolution using the byte_to_pixels() DSC specific
function in case of compression enabled.
For non-compressed video, the number of pixels
in active region are computed as usual.
Change-Id: Iacea79352fa67a40a1d305494539f7c99f2715d0
Signed-off-by: vkorjani <vikas.korjani at intel.com>
Signed-off-by: Yogesh Mohan Marimuthu <yogesh.mohan.marimuthu at intel.com>
---
drivers/gpu/drm/i915/intel_dsi.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_dsi.c b/drivers/gpu/drm/i915/intel_dsi.c
index e566750..9963ec2 100644
--- a/drivers/gpu/drm/i915/intel_dsi.c
+++ b/drivers/gpu/drm/i915/intel_dsi.c
@@ -901,6 +901,9 @@ static void intel_dsi_prepare(struct intel_encoder *intel_encoder)
mode_hdisplay += intel_dsi->pixel_overlap;
}
+ if (intel_dsi->dsc_enable)
+ mode_hdisplay = pixel_to_bytes(encoder, mode_hdisplay, bpp);
+
for_each_dsi_port(port, intel_dsi->ports) {
if (IS_VALLEYVIEW(dev)) {
/*
--
1.7.9.5
More information about the Intel-gfx
mailing list