Merge pull request #5051 from HiassofT/le10-rpi-zoom

linux (RPi): add patch to fix zoom in video player
This commit is contained in:
CvH 2021-01-27 19:24:08 +01:00 committed by GitHub
commit 7badb009f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,23 @@
From 023078a22c3a6baf6339c946aa7be3c8f1b90a14 Mon Sep 17 00:00:00 2001
From: Dom Cobley <popcornmix@gmail.com>
Date: Sat, 23 Jan 2021 18:00:48 +0000
Subject: [PATCH] vc4_place: Don't reject fractional source coords
---
drivers/gpu/drm/vc4/vc4_plane.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c
index b5586c92bfe54..1947798f3eaf3 100644
--- a/drivers/gpu/drm/vc4/vc4_plane.c
+++ b/drivers/gpu/drm/vc4/vc4_plane.c
@@ -358,7 +358,8 @@ static int vc4_plane_setup_clipping_and_scaling(struct drm_plane_state *state)
(state->src.x2 & subpixel_src_mask) ||
(state->src.y1 & subpixel_src_mask) ||
(state->src.y2 & subpixel_src_mask)) {
- return -EINVAL;
+ DRM_DEBUG_KMS("Invalid subpixel scaling %x %x %x %x (%x)\n", state->src.x1, state->src.x2, state->src.y1, state->src.y2, subpixel_src_mask);
+ //return -EINVAL;
}
vc4_state->src_x = state->src.x1 >> 16;