aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-05-18 11:51:51 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-06-02 11:09:34 +0300
commitcc8dd7661ccc2d8dc88921da8e6cc7c2fcdb0341 (patch)
tree3e9ab4618982c864b93d0aadac8cfed39961c0e0 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
parent2add8d1310eb5b1094e02a7261b6e35df5e65bf3 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions