Files
linux/drivers/gpu/drm
Tomi Valkeinen f973300dbd drm/omap: fix tiled buffer stride calculations
[ Upstream commit cc8dd7661c ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-13 19:50:16 +02:00
..
2018-02-25 11:03:52 +01:00
2018-03-24 10:58:46 +01:00
2015-10-19 11:00:44 +02:00
2015-09-30 10:44:48 +02:00
2015-09-30 10:44:48 +02:00
2015-03-13 17:37:35 +01:00
2015-09-30 10:44:48 +02:00
2015-09-30 10:44:48 +02:00