drm/stm: ltdc: remove non-alpha color formats on layer 2 for older hw
authorPhilippe CORNU <philippe.cornu@st.com>
Thu, 1 Feb 2018 10:42:43 +0000 (11:42 +0100)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Thu, 8 Feb 2018 09:23:32 +0000 (10:23 +0100)
commit9569002a39cdc17b11f415f16215ec2428dad902
tree180aba86e6c6aa5d2204661b1951008915f5f35e
parentaefa830199c3d07e198d44f55aa781f119937854
drm/stm: ltdc: remove non-alpha color formats on layer 2 for older hw

Hw older versions support non-alpha color formats derived
from native alpha color formats only on the primary layer.
For instance, RG16 native format without alpha works fine
on 2nd layer but XR24 (derived color format from AR24)
does not work on 2nd layer.

Signed-off-by: Philippe Cornu <philippe.cornu@st.com>
Reviewed-by: Yannick Fertré <yannick.fertre@st.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180201104243.20726-3-philippe.cornu@st.com
drivers/gpu/drm/stm/ltdc.c
drivers/gpu/drm/stm/ltdc.h