mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
drm/i915: Reject X/Y tiled BIOS FB if we don't have fenced regions
The CPU always needs linear view into the BIOS FB, and for X/Y tiled
buffers that is achieved by the use of a fenced region. If the
underlying driver doesn't support fenced regions then we can't keep
the X/Y tiled BIOS FB. i915 has fenced regions, xe does not.
Probably not a big deal since I don't think we've seen tiled BIOS
FBs outside of some MacBooks. See eg. commit d9a515867b
("drm/i915/gen9+: Fix initial readout for Y tiled framebuffers").
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260410150449.9699-9-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
c2a9f16bc9
commit
a05eda6f64
|
|
@ -79,9 +79,13 @@ intel_alloc_initial_plane_obj(struct intel_display *display,
|
|||
|
||||
switch (fb->modifier) {
|
||||
case DRM_FORMAT_MOD_LINEAR:
|
||||
break;
|
||||
case I915_FORMAT_MOD_X_TILED:
|
||||
case I915_FORMAT_MOD_Y_TILED:
|
||||
break;
|
||||
/* fenced region needed for linear CPU access to tiled FB */
|
||||
if (intel_parent_has_fenced_regions(display))
|
||||
break;
|
||||
fallthrough;
|
||||
default:
|
||||
drm_dbg_kms(display->drm, "Unsupported modifier for initial FB: 0x%llx\n",
|
||||
fb->modifier);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user