hc
2024-07-02 39af2116d7581c9a12be9e73bb6bdc31496495ef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From d848ecdc6304c4d4e23e2e5088ce921deff9b51c Mon Sep 17 00:00:00 2001
From: Jeffy Chen <jeffy.chen@rock-chips.com>
Date: Mon, 26 Oct 2020 16:23:27 +0800
Subject: [PATCH 36/69] backend-drm: Allow disabling plane scale
 
Set env WESTON_DRM_DISABLE_PLANE_SCALE to disable plane scale.
 
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
 libweston/backend-drm/drm.c | 3 +++
 1 file changed, 3 insertions(+)
 
diff --git a/libweston/backend-drm/drm.c b/libweston/backend-drm/drm.c
index 95e78ec00..9e44d325a 100644
--- a/libweston/backend-drm/drm.c
+++ b/libweston/backend-drm/drm.c
@@ -1181,6 +1181,9 @@ drm_plane_create(struct drm_backend *b, const drmModePlane *kplane)
                      props,
                      WDRM_PLANE_FEATURE_SCALE);
 
+    if (getenv("WESTON_DRM_DISABLE_PLANE_SCALE"))
+        plane->can_scale = false;
+
     zpos_range_values =
         drm_property_get_range_values(&plane->props[WDRM_PLANE_ZPOS],
                           props);
-- 
2.20.1