[PATCH] drm/i915/display: Don't allow odd ypan or ysize with semiplanar format
Juha-Pekka Heikkila
juhapekka.heikkila at gmail.com
Tue Nov 19 17:25:44 UTC 2024
Disable support for odd panning and size in y direction when running
on display version 3x and using semiplanar formats.
Bspec: 68903
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
drivers/gpu/drm/i915/display/intel_atomic_plane.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_atomic_plane.c b/drivers/gpu/drm/i915/display/intel_atomic_plane.c
index d89630b2d5c1..a61eeaa7640c 100644
--- a/drivers/gpu/drm/i915/display/intel_atomic_plane.c
+++ b/drivers/gpu/drm/i915/display/intel_atomic_plane.c
@@ -1030,6 +1030,11 @@ int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state)
DISPLAY_VERx100(i915) == 3000) &&
src_x % 2 != 0)
hsub = 2;
+
+ if (DISPLAY_VERx100(i915) >= 3000 &&
+ DISPLAY_VERx100(i915) <= 3500)
+ vsub = 2;
+
} else {
hsub = fb->format->hsub;
vsub = fb->format->vsub;
--
2.45.2
More information about the Intel-gfx
mailing list