]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: verify that fb plane pitches are the same
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 8 Jan 2016 13:51:02 +0000 (15:51 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 3 Mar 2016 15:36:43 +0000 (17:36 +0200)
commit9cdb9341b5df981027ef4477ef8e6b47c3fc82a1
treed22ce7f69cfd883908a9270033adab096018b590
parent7cc7be58f42c0d2b37367b732b9f6af3bb7b1652
drm/omap: verify that fb plane pitches are the same

The DSS hardware uses the same ROW_INC value for both Y and UV planes
for NV12 format. This means that the pitches of the Y and UV planes have
to match. omapdrm doesn't check this at the moment, and this can lead
into a broken NV12 fb on the screen.

This patch adds the check.

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