aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorTomi Valkeinen <[email protected]>2017-05-18 08:51:51 +0000
committerTomi Valkeinen <[email protected]>2017-06-02 08:09:34 +0000
commitcc8dd7661ccc2d8dc88921da8e6cc7c2fcdb0341 (patch)
tree3e9ab4618982c864b93d0aadac8cfed39961c0e0 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentdrm/omap: fix YUV422 90/270 rotation with mirroring (diff)
downloadkernel-cc8dd7661ccc2d8dc88921da8e6cc7c2fcdb0341.tar.gz
kernel-cc8dd7661ccc2d8dc88921da8e6cc7c2fcdb0341.zip
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 <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions