Tomi Valkeinen cc8dd7661c drm/omap: fix tiled buffer stride calculations
omap_gem uses page alignment for buffer stride. The related calculations
are a bit off, though, as byte stride of 4096 gets aligned to 8192,
instead of 4096.

This patch changes the code to use DIV_ROUND_UP(), which fixes those
calculations and makes them more readable.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-06-02 11:09:34 +03:00
..
2017-06-02 10:57:13 +03:00
2015-03-24 13:50:55 +02:00
2017-06-02 10:57:14 +03:00
2017-06-02 11:04:17 +03:00
2017-06-02 10:57:21 +03:00