Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/display: Don't allow odd ypan or ysize with semiplanar format
@ 2024-11-19 17:25 Juha-Pekka Heikkila
  2024-11-19 17:27 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Juha-Pekka Heikkila @ 2024-11-19 17:25 UTC (permalink / raw)
  To: intel-gfx, intel-xe; +Cc: Juha-Pekka Heikkila

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@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


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-11-21 13:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-19 17:25 [PATCH] drm/i915/display: Don't allow odd ypan or ysize with semiplanar format Juha-Pekka Heikkila
2024-11-19 17:27 ` ✓ CI.Patch_applied: success for " Patchwork
2024-11-19 17:27 ` ✓ CI.checkpatch: " Patchwork
2024-11-19 17:28 ` ✓ CI.KUnit: " Patchwork
2024-11-19 17:46 ` ✓ CI.Build: " Patchwork
2024-11-19 17:49 ` ✓ CI.Hooks: " Patchwork
2024-11-19 17:50 ` ✗ CI.checksparse: warning " Patchwork
2024-11-19 18:10 ` ✓ CI.BAT: success " Patchwork
2024-11-20  4:19 ` ✗ CI.FULL: failure " Patchwork
2024-11-21 13:59 ` [PATCH] " Jani Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox