drm/i915: Extract intel_plane_needs_fence()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 16 Apr 2026 17:44:44 +0000 (20:44 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 21 Apr 2026 10:11:36 +0000 (13:11 +0300)
commitcace3b42072e22332f6ab31a3556da834f62493a
tree90dfae8644a12241363cff7aaee37c8e2871a32a
parent08a1df744694556e6d922f695eaaf1fff52d6243
drm/i915: Extract intel_plane_needs_fence()

Extract the naked DISPLAY_VER<4 checks into a descriptive little
helper (intel_plane_needs_fence()).

And while at it document the reason why the check is what it is.

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