]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/fb: Use intel_fb_needs_pot_stride_remap() in intel_fb_view_init()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 7 Apr 2026 15:50:53 +0000 (18:50 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 10 Apr 2026 10:29:29 +0000 (13:29 +0300)
commit672f131ab7419194a037ae7ae6ed575993ee746e
treed51cb8fc9994e35a5be9bd181039e98865e1b697
parentfa3d6c5e35fe224370d653334bb299e9f47b9cbd
drm/i915/fb: Use intel_fb_needs_pot_stride_remap() in intel_fb_view_init()

Replace the open coded intel_fb_needs_pot_stride_remap() check
inside intel_fb_view_init() with the real thing.

The current check doesn't have the intel_fb_uses_dpt() in there, but
that is the only situation when we use the remapped view, and thus
was always implied.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260407155053.32156-13-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_fb.c