OSDN Git Service

drm/omap: fix missing scaler pixel fmt limitations
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 30 Sep 2019 10:38:37 +0000 (13:38 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 4 Oct 2019 08:30:28 +0000 (11:30 +0300)
commitf5b1fae153d9d9b719cc390eb3fb490996a09d2d
tree839ef8457e4e7f71ff9a3c9d4b1ec44ac89ba2f2
parent157d8f60363a7c5767fdda81fea946b44945454f
drm/omap: fix missing scaler pixel fmt limitations

OMAP2 and OMAP3/AM4 have limitations with the scaler:
- OMAP2 can only scale XRGB8888
- OMAP3/AM4 can only scale XRGB8888, RGB565, YUYV and UYVY

The driver doesn't check these limitations, which leads to sync-lost
floods.

This patch adds a check for the pixel formats when scaling.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190930103840.18970-5-tomi.valkeinen@ti.com
drivers/gpu/drm/omapdrm/dss/dispc.c