return NULL;
}
+ /*
+ * Would need to preserve the DPT, its GGTT
+ * mapping, and the actual FB memory.
+ */
+ if (intel_fb_modifier_uses_dpt(display, fb->modifier)) {
+ drm_dbg_kms(display->drm, "DPT not supported for initial FB\n");
+ return NULL;
+ }
+
return display->parent->initial_plane->alloc_obj(display->drm, plane_config);
}
fb->format = drm_get_format_info(display->drm, fourcc, fb->modifier);
- if (!display->params.enable_dpt &&
- intel_fb_modifier_uses_dpt(display, fb->modifier)) {
- drm_dbg_kms(display->drm, "DPT disabled, skipping initial FB\n");
- goto error;
- }
-
/*
* DRM_MODE_ROTATE_ is counter clockwise to stay compatible with Xrandr
* while i915 HW rotation is clockwise, that's why this swapping.