bcm27xx: add kernel 5.10 support
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.10 / 950-0403-drm-vc4-Make-normalize_zpos-conditional-on-using-fkm.patch
1 From a384e2c5d6e72e08e3d183b58ca8697f6665a793 Mon Sep 17 00:00:00 2001
2 From: Dom Cobley <popcornmix@gmail.com>
3 Date: Tue, 15 Dec 2020 16:26:51 +0000
4 Subject: [PATCH] drm/vc4: Make normalize_zpos conditional on using
5 fkms
6
7 Eric's view was that there was no point in having zpos
8 support on vc4 as all the planes had the same functionality.
9
10 Can be later squashed into (and fixes):
11 drm/vc4: Add firmware-kms mode
12
13 Signed-off-by: Dom Cobley <popcornmix@gmail.com>
14 ---
15 drivers/gpu/drm/vc4/vc4_kms.c | 3 ++-
16 1 file changed, 2 insertions(+), 1 deletion(-)
17
18 --- a/drivers/gpu/drm/vc4/vc4_kms.c
19 +++ b/drivers/gpu/drm/vc4/vc4_kms.c
20 @@ -923,7 +923,8 @@ int vc4_kms_load(struct drm_device *dev)
21 dev->mode_config.preferred_depth = 24;
22 dev->mode_config.async_page_flip = true;
23 dev->mode_config.allow_fb_modifiers = true;
24 - dev->mode_config.normalize_zpos = true;
25 + if (vc4->firmware_kms)
26 + dev->mode_config.normalize_zpos = true;
27
28 ret = vc4_ctm_obj_init(vc4);
29 if (ret)