OSDN Git Service

drm/omap: fix setting & clearing DOUBLESTRIDE
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 29 Aug 2016 08:15:49 +0000 (11:15 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Jun 2017 07:57:20 +0000 (10:57 +0300)
commit6d86278c9ddb2026727a6a9ba5a4550561aea940
tree7459142dff4da9d3c465ae66f229cdd5deef857d
parenteb06225244481ae0f14f5bca1cae966aa2839d7c
drm/omap: fix setting & clearing DOUBLESTRIDE

The code that sets and clears DOUBLESTRIDE is only ran when using NV12.
This is not correct, as we might first set the bith when using NV12, but
never clear it when using other formats.

Fix it so that when the bit is available (when the HW supports NV12) we
always either set or clear the bit.

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