[PATCH v2.1] drm/i915/display: Allowing looking up invalid modifiers to make xe happy

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Wed Aug 21 20:59:59 UTC 2024


Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 drivers/gpu/drm/i915/display/intel_fb.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_fb.c b/drivers/gpu/drm/i915/display/intel_fb.c
index f23547a88b1fb..e049608dc65dc 100644
--- a/drivers/gpu/drm/i915/display/intel_fb.c
+++ b/drivers/gpu/drm/i915/display/intel_fb.c
@@ -382,6 +382,10 @@ bool intel_fb_is_tiled_modifier(u64 modifier)
  */
 bool intel_fb_is_ccs_modifier(u64 modifier)
 {
+	const struct intel_modifier_desc *desc = lookup_modifier_or_null(modifier);
+	if (!desc)
+		return false;
+
 	return plane_caps_contain_any(lookup_modifier(modifier)->plane_caps,
 				      INTEL_PLANE_CAP_CCS_MASK);
 }
-- 
2.45.2



More information about the Intel-xe mailing list