[Intel-gfx] [PATCH v3 11/17] drm/i915/dg2: Prune the Y Tiling modifiers

Ramalingam C ramalingam.c at intel.com
Wed Oct 27 21:23:33 UTC 2021


Remove the Y Tiling modifiers for DG2.

Signed-off-by: Ramalingam C <ramalingam.c at intel.com>
Signed-off-by: Juha-Pekka Heikkila <juha-pekka.heikkila at intel.com>
---
 drivers/gpu/drm/i915/display/intel_fb.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_fb.c b/drivers/gpu/drm/i915/display/intel_fb.c
index 9ce1d273dc7e..9ff52dde1683 100644
--- a/drivers/gpu/drm/i915/display/intel_fb.c
+++ b/drivers/gpu/drm/i915/display/intel_fb.c
@@ -315,6 +315,9 @@ static bool plane_has_modifier(struct drm_i915_private *i915,
 	if (!IS_DISPLAY_VER(i915, md->display_ver.from, md->display_ver.until))
 		return false;
 
+	if (IS_DG2(i915) && md->tiling == I915_TILING_Y)
+		return false;
+
 	if (!md->is_linear &&
 	    !(plane_caps & PLANE_HAS_TILING))
 		return false;
-- 
2.20.1



More information about the Intel-gfx mailing list