]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915: Reuse vlv_primary_min_alignment() for sprites as well
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 9 Oct 2024 18:22:03 +0000 (21:22 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Jan 2025 19:59:54 +0000 (21:59 +0200)
commitd851663664a3515dc1272fc7ef35a6e0db467b31
treeacce25a13949f8b2a440f6190ead6d34bb649105
parent2f4c92166ed53d46b4ad66b7cffb1350dec8c0b6
drm/i915: Reuse vlv_primary_min_alignment() for sprites as well

Rename vlv_primary_min_alignment() to vlv_plane_min_alignment()
and use it to replace vlv_sprite_min_alignment() since the
behaviour is now identical when the plane init doesn't set up
any async flips stuff.

Technically VLV/CHV sprites do support async flips, so this
also makes us a bit more future proof if/when we extend async
flip support to more than one plane.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241009182207.22900-6-ville.syrjala@linux.intel.com
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
drivers/gpu/drm/i915/display/i9xx_plane.c
drivers/gpu/drm/i915/display/i9xx_plane.h
drivers/gpu/drm/i915/display/intel_sprite.c