OMAPDSS: DISPC: Configure doublestride for NV12 when using 2D Tiler buffers
commitc35eeb2e80a4dd3aa1a4ceac8f74f4c4e61f6463
authorArchit Taneja <archit@ti.com>
Tue, 26 Mar 2013 13:45:24 +0000 (26 19:15 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 10 Apr 2013 12:02:53 +0000 (10 15:02 +0300)
treef7e06461e6f8231588afc1ccf4024d756cb74748
parent3729a70b5837a60d736e8e5edb116b8eecd1bedb
OMAPDSS: DISPC: Configure doublestride for NV12 when using 2D Tiler buffers

When using a DISPC video pipeline to a fetch a NV12 buffer in a 2D container, we
need to set set a doublestride bit in the video pipe's ATTRIBUTES register. This
is needed because the stride for the UV plane(using a 16 bit Tiler container) is
double the stride for the Y plane(using a 8 bit Tiler container) for the 0 or
180 degree views. The ROW_INC register is meant for the Y plane, and the HW will
calculate the row increment needed for the UV plane by using double the stride
value based on whether this bit is set or not.

Set the bit when we are using a 2D Tiler buffer and when rotation is 0 or 180
degrees. The stride value is the same for 90 and 270 degree Tiler views, hence
the bit shouldn't be set.

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