Imre Deak 23c87dc677 drm/i915/intel_fb: Factor out calc_plane_remap_info()
Factor out to a new function the logic to calculate the FB remapping
parameters both during creating the FB and when flipping to it.

v2:
- Keep stride next to offset calculation. (Ville)
- Enclose check_array_bounds macro arguments in parentheses.
v3:
- Rebase on top of the struct intel_fb_view refactoring.

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-20-imre.deak@intel.com
2021-03-29 22:58:12 +03:00
..
2021-01-07 10:46:32 +01:00
2021-02-21 14:44:44 -08:00
2021-02-22 08:50:01 -08:00
2020-08-06 14:27:31 -07:00
2020-12-15 10:21:48 +01:00
2021-02-05 09:25:26 +10:00
2021-02-25 12:10:22 -08:00
2021-02-22 14:27:07 -08:00
2021-02-25 09:56:08 -08:00
2021-02-21 14:44:44 -08:00
2020-12-15 15:46:03 +02:00
2021-02-21 14:44:44 -08:00
2021-02-25 12:10:22 -08:00
2021-02-21 14:44:44 -08:00
2021-01-25 14:35:44 +10:00
2021-02-21 14:44:44 -08:00
2021-01-04 12:59:33 +01:00
2021-02-23 10:15:33 -08:00
2020-09-21 10:45:08 +02:00
2020-08-11 11:58:31 +10:00
2021-01-07 13:40:20 +01:00
2020-08-11 11:58:31 +10:00
2021-01-25 14:35:44 +10:00
2021-01-20 10:28:39 +01:00
2021-02-22 17:15:30 -08:00