OMAPDSS: DISPC: Use output width and height to calculate row/pix inc for writeback
authorArchit Taneja <archit@ti.com>
Wed, 7 Nov 2012 06:15:04 +0000 (11:45 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 12 Nov 2012 11:52:55 +0000 (13:52 +0200)
commit6be0d73e2a5de2e6a2570a48e6e11bbc4563f5e3
treef0160e6c61c346aa634a879084f716d50a2cbc5f
parent1c031441a95eef928220403b6c3a2dd00d09dcdc
OMAPDSS: DISPC: Use output width and height to calculate row/pix inc for writeback

When calculating row and pixel increments for graphics and video pipes, we need
to consider the dimensions of the input frame to know how to read from the
buffer. Hence, we need to calculate these parameters from the input to the
pipeline.

For writeback, the row and pixel increments need to be calculated based on the
output of the writeback pipeline, i.e, the dimensions of the frame after
scaling. Ensure that dispc driver uses values of out_width and out_height when
calling calc_dma/calc_tiler_rotation_offset.

For graphics and video pipes, the original code passed the original height as
frame_height to calc_dma_rotation_offset, and not the predecimated height. This
is left as it is for now. We need to figure out why pre decimated height isn't
needed.

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dispc.c