diff options
| author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-05-18 11:51:51 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-13 19:50:16 +0200 |
| commit | f973300dbd1628ebd51f2df4ed4e4d49ac365b90 (patch) | |
| tree | 6bf5a7cbc2ec45c01a7b1f1c6be2089d13f39264 /tools/perf/scripts | |
| parent | b1c442743717cd98c4043b24f4d0efe0c87127ce (diff) | |
drm/omap: fix tiled buffer stride calculations
[ Upstream commit cc8dd7661ccc2d8dc88921da8e6cc7c2fcdb0341 ]
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>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
