]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/intel_fb: Factor out calc_plane_aligned_offset()
authorImre Deak <imre.deak@intel.com>
Thu, 25 Mar 2021 21:47:57 +0000 (23:47 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 29 Mar 2021 19:54:51 +0000 (22:54 +0300)
commitaefc6b8dbfa9dc9f82f69a3caa4eb1f5e7498b7f
treef45ef06073c94ed8ba1feb56899a6e30c7c029d9
parent4ba5325851daaafc075ab93622adec10033ab7fa
drm/i915/intel_fb: Factor out calc_plane_aligned_offset()

Factor out to a new function the logic to convert the FB plane x/y
values to a tile size based offset and new x/y relative to this offset.
This makes intel_fill_fb_info() and intel_plane_remap_gtt() somewhat
more readable.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210325214808.2071517-15-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_fb.c