All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH] drm/i915: Fix wm params for ccs
@ 2021-07-13 18:44 Juha-Pekka Heikkila
  2021-07-13 20:17 ` Lucas De Marchi
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Juha-Pekka Heikkila @ 2021-07-13 18:44 UTC (permalink / raw)
  To: intel-gfx

skl_compute_plane_wm_params() didn't take into account ccs
modifiers on graphics ver >= 12

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

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 0cbb79452fcf..540a7ecbf004 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -5249,11 +5249,9 @@ skl_compute_wm_params(const struct intel_crtc_state *crtc_state,
 
 	wp->y_tiled = modifier == I915_FORMAT_MOD_Y_TILED ||
 		      modifier == I915_FORMAT_MOD_Yf_TILED ||
-		      modifier == I915_FORMAT_MOD_Y_TILED_CCS ||
-		      modifier == I915_FORMAT_MOD_Yf_TILED_CCS;
+		      is_ccs_modifier(modifier);
 	wp->x_tiled = modifier == I915_FORMAT_MOD_X_TILED;
-	wp->rc_surface = modifier == I915_FORMAT_MOD_Y_TILED_CCS ||
-			 modifier == I915_FORMAT_MOD_Yf_TILED_CCS;
+	wp->rc_surface = is_ccs_modifier(modifier);
 	wp->is_planar = intel_format_info_is_yuv_semiplanar(format, modifier);
 
 	wp->width = width;
-- 
2.28.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2021-07-14 16:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-13 18:44 [Intel-gfx] [PATCH] drm/i915: Fix wm params for ccs Juha-Pekka Heikkila
2021-07-13 20:17 ` Lucas De Marchi
2021-07-13 20:23 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
2021-07-14  4:38 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2021-07-14  7:57   ` Juha-Pekka Heikkilä
2021-07-14 16:14     ` Vudum, Lakshminarayana
2021-07-14 12:41 ` [Intel-gfx] [PATCH] " Imre Deak
2021-07-14 16:01 ` [Intel-gfx] ✓ Fi.CI.IGT: success for " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.