HYL_OK3568_LINUX/buildroot/package/weston/0039-backend-drm-Allow-disabling-plane-scale.patch
2025-05-10 21:49:39 +08:00

30 lines
923 B
Diff

From 559ab3c57109bfe774b3ea5bd5b3f06a1f55023c 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 39/95] 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 ed902e8..756ee00 100644
--- a/libweston/backend-drm/drm.c
+++ b/libweston/backend-drm/drm.c
@@ -1217,6 +1217,9 @@ drm_plane_create(struct drm_device *device, 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