From 6f5aeb7baceb564c38cdfcd5c56dca5d87dd6178 Mon Sep 17 00:00:00 2001 From: Jeffy Chen Date: Mon, 26 Oct 2020 16:23:27 +0800 Subject: [PATCH 39/93] backend-drm: Allow disabling plane scale Set env WESTON_DRM_DISABLE_PLANE_SCALE to disable plane scale. Signed-off-by: Jeffy Chen --- 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 a936e9b..8ebee93 100644 --- a/libweston/backend-drm/drm.c +++ b/libweston/backend-drm/drm.c @@ -1210,6 +1210,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