Ville Syrjälä 6874f95816 drm/i915/fbc: Extract helpers to compute FBC control register values
Declutter the *_fbc_activate() functions by pulling all the
control register value computations into helpers.

I left the enable bit in *_fbc_activate() in the hopes of maybe
using the helpers in the *_fbc_deactivate() paths as well instead
of the current rmw approach. That won't be possible at least
quite yet since we clobber the fbc->params before deactivating
FBC so we could end up changing some of the values live, which
given FBC's lack of/poor double buffering would likely not go
so well.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211104144520.22605-6-ville.syrjala@linux.intel.com
Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2021-11-11 15:18:11 +02:00
..
2021-10-28 14:59:38 +10:00
2021-10-04 13:11:31 -04:00
2021-10-07 11:04:05 -07:00
2021-09-20 08:06:36 -07:00
2021-10-07 11:04:05 -07:00
2021-10-15 10:45:50 -07:00
2021-10-15 10:45:50 -07:00
2021-07-22 09:28:58 -07:00
2021-03-26 09:24:31 +01:00