linux/drivers/video/omap2
Tomi Valkeinen eec77da274 OMAPDSS: DISPC: decimation rounding fix
The driver uses DIV_ROUND_UP when calculating decimated width & height.
For example, when decimating with 3, the width is calculated as:

  width = DIV_ROUND_UP(width, decim_x);

This yields bad results for some values. For example, 800/3=266.666...,
which is rounded to 267. When the input width is set to 267, and pixel
increment is set to 3, this causes the dispc to read a line of 801
pixels, i.e. it reads a wrong pixel at the end of the line.

Even more pressing, the above rounding causes a BUG() in pixinc(), as
the value of 801 is used to calculate row increment, leading to a bad
value being passed to pixinc().

This patch fixes the decimation by removing the DIV_ROUND_UP()s when
calculating width and height for decimation.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2014-02-11 16:19:41 +02:00
..
displays-new OMAPDSS: panel-acx565akm: clean-up locking 2014-01-13 12:19:57 +02:00
dss OMAPDSS: DISPC: decimation rounding fix 2014-02-11 16:19:41 +02:00
omapfb OMAPFB: disable overlays on driver removal 2014-01-13 12:19:56 +02:00
Kconfig OMAPDSS: remove all old panel drivers 2013-08-29 16:21:52 +03:00
Makefile OMAPDSS: remove all old panel drivers 2013-08-29 16:21:52 +03:00
vrfb.c drivers/video/omap2: don't check resource with devm_ioremap_resource 2013-05-18 11:58:01 +02:00