Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/display: On plane capability check rely on display version
@ 2024-09-12 15:24 Juha-Pekka Heikkila
  2024-09-12 16:33 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Juha-Pekka Heikkila @ 2024-09-12 15:24 UTC (permalink / raw)
  To: intel-xe, intel-gfx; +Cc: Juha-Pekka Heikkila, Imre Deak

When check in display code for Xe2 ccs modifiers rely on display version
along with separation of dgpu and igpu

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
---
 drivers/gpu/drm/i915/display/intel_fb.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_fb.c b/drivers/gpu/drm/i915/display/intel_fb.c
index c9038d239eb2..25de4ce356bb 100644
--- a/drivers/gpu/drm/i915/display/intel_fb.c
+++ b/drivers/gpu/drm/i915/display/intel_fb.c
@@ -477,12 +477,10 @@ static bool plane_has_modifier(struct drm_i915_private *i915,
 	    HAS_FLAT_CCS(i915) != !md->ccs.packed_aux_planes)
 		return false;
 
-	if (md->modifier == I915_FORMAT_MOD_4_TILED_BMG_CCS &&
-	    (GRAPHICS_VER(i915) < 20 || !IS_DGFX(i915)))
+	if (md->modifier == I915_FORMAT_MOD_4_TILED_BMG_CCS && !IS_DGFX(i915))
 		return false;
 
-	if (md->modifier == I915_FORMAT_MOD_4_TILED_LNL_CCS &&
-	    (GRAPHICS_VER(i915) < 20 || IS_DGFX(i915)))
+	if (md->modifier == I915_FORMAT_MOD_4_TILED_LNL_CCS && IS_DGFX(i915))
 		return false;
 
 	return true;
-- 
2.45.2


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

end of thread, other threads:[~2024-09-13  6:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-12 15:24 [PATCH] drm/i915/display: On plane capability check rely on display version Juha-Pekka Heikkila
2024-09-12 16:33 ` ✓ CI.Patch_applied: success for " Patchwork
2024-09-12 16:33 ` ✓ CI.checkpatch: " Patchwork
2024-09-12 16:35 ` ✓ CI.KUnit: " Patchwork
2024-09-12 16:49 ` ✓ CI.Build: " Patchwork
2024-09-12 16:51 ` ✓ CI.Hooks: " Patchwork
2024-09-12 16:53 ` ✗ CI.checksparse: warning " Patchwork
2024-09-12 17:18 ` ✓ CI.BAT: success " Patchwork
2024-09-12 17:25 ` [PATCH] " Lucas De Marchi
2024-09-13  6:13 ` ✗ CI.FULL: failure for " Patchwork
2024-09-13  6:57 ` [PATCH] " Imre Deak

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