]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: remove unnecessary pitch round-up
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 18 Apr 2016 15:11:29 +0000 (18:11 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 6 Jun 2016 07:14:27 +0000 (10:14 +0300)
commit5c933616cbf9c01a6588c1a13bcc4787ff2d7e48
treebe4a742a3e6cda956a9f0f86042e8e79fe1746ba
parentb2ffd774a983737aa4b1d0d0f514f34eff512d0f
drm/omap: remove unnecessary pitch round-up

omapdrm checks if the pixel stride is divisible by 8. This is meant to
ensure that the byte stride is 32, which is required by SGX.

The check is not correct, as it checks for pixels, not bytes, and thus
needlessly increases the stride for, e.g., NV12.

Also, SGX driver is not supported in the mainline, and the TI's SGX
driver nowadays does the memory allocation itself and doesn't rely on
omapdrm to figure out the correct pitch.

So we can just remove the whole roundup.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/omapdrm/omap_drv.h