mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
30 lines
970 B
Diff
30 lines
970 B
Diff
|
From a384e2c5d6e72e08e3d183b58ca8697f6665a793 Mon Sep 17 00:00:00 2001
|
||
|
From: Dom Cobley <popcornmix@gmail.com>
|
||
|
Date: Tue, 15 Dec 2020 16:26:51 +0000
|
||
|
Subject: [PATCH] drm/vc4: Make normalize_zpos conditional on using
|
||
|
fkms
|
||
|
|
||
|
Eric's view was that there was no point in having zpos
|
||
|
support on vc4 as all the planes had the same functionality.
|
||
|
|
||
|
Can be later squashed into (and fixes):
|
||
|
drm/vc4: Add firmware-kms mode
|
||
|
|
||
|
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
|
||
|
---
|
||
|
drivers/gpu/drm/vc4/vc4_kms.c | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
--- a/drivers/gpu/drm/vc4/vc4_kms.c
|
||
|
+++ b/drivers/gpu/drm/vc4/vc4_kms.c
|
||
|
@@ -923,7 +923,8 @@ int vc4_kms_load(struct drm_device *dev)
|
||
|
dev->mode_config.preferred_depth = 24;
|
||
|
dev->mode_config.async_page_flip = true;
|
||
|
dev->mode_config.allow_fb_modifiers = true;
|
||
|
- dev->mode_config.normalize_zpos = true;
|
||
|
+ if (vc4->firmware_kms)
|
||
|
+ dev->mode_config.normalize_zpos = true;
|
||
|
|
||
|
ret = vc4_ctm_obj_init(vc4);
|
||
|
if (ret)
|