hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
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 e6170da2b7755e5dd7d7c03c33fa81a89a14b323 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/74] 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 df9db5c..2b887eb 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