MLK-22600-1 drm/imx: dpu: kms: Support proper default blend mode
authorLiu Ying <victor.liu@nxp.com>
Tue, 3 Sep 2019 19:16:54 +0000 (15:16 -0400)
committerLiu Ying <victor.liu@nxp.com>
Fri, 20 Sep 2019 02:01:30 +0000 (10:01 +0800)
commit5ab3112a8d806d8676e40ec3bdca84b1738e27e2
tree2a8a59d7c07be797238a432de164b2df01bf6625
parentd9df479834a8ea9e7c685041f9f3928977e0b4ef
MLK-22600-1 drm/imx: dpu: kms: Support proper default blend mode

Without the new blend modes("None", "Pre-multiplied" and "Coverage")
introduced in the below commit, the old userspace assumes alpha in
pixel is per-premultiplied by default.  So, let's support the default
blend mode properly.

commit 468dba6432ca ("drm: Add per-plane pixel blend mode property")

Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit ebb7b4874493a8fb42de636e9421877a54399177)
drivers/gpu/drm/imx/dpu/dpu-plane.c
drivers/gpu/imx/dpu/dpu-fetchdecode.c
drivers/gpu/imx/dpu/dpu-fetchlayer.c
drivers/gpu/imx/dpu/dpu-fetchunit.c
drivers/gpu/imx/dpu/dpu-fetchwarp.c
drivers/gpu/imx/dpu/dpu-layerblend.c
drivers/gpu/imx/dpu/dpu-prv.h
include/video/dpu.h