summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/stm/ltdc.h
diff options
context:
space:
mode:
authorPhilippe CORNU <philippe.cornu@st.com>2018-02-01 13:42:43 +0300
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>2018-02-08 12:23:32 +0300
commit9569002a39cdc17b11f415f16215ec2428dad902 (patch)
tree180aba86e6c6aa5d2204661b1951008915f5f35e /drivers/gpu/drm/stm/ltdc.h
parentaefa830199c3d07e198d44f55aa781f119937854 (diff)
downloadlinux-9569002a39cdc17b11f415f16215ec2428dad902.tar.xz
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
Diffstat (limited to 'drivers/gpu/drm/stm/ltdc.h')
-rw-r--r--drivers/gpu/drm/stm/ltdc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/stm/ltdc.h b/drivers/gpu/drm/stm/ltdc.h
index edd1c0a446d1..edb268129c54 100644
--- a/drivers/gpu/drm/stm/ltdc.h
+++ b/drivers/gpu/drm/stm/ltdc.h
@@ -17,6 +17,7 @@ struct ltdc_caps {
u32 reg_ofs; /* register offset for applicable regs */
u32 bus_width; /* bus width (32 or 64 bits) */
const u32 *pix_fmt_hw; /* supported pixel formats */
+ bool non_alpha_only_l1; /* non-native no-alpha formats on layer 1 */
};
struct ltdc_device {