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-28 14:59:38 +10:00
2021-10-04 12:06:14 +02:00
2021-07-30 14:52:00 +10:00
2021-08-10 20:14:01 +02:00
2021-09-01 11:26:46 -07:00
2021-08-10 20:14:01 +02:00
2021-10-28 14:59:38 +10:00
2021-10-07 05:42:16 +03:00
2021-10-28 14:59:38 +10:00
2021-10-28 14:59:38 +10:00
2021-10-28 14:59:38 +10:00
2021-10-28 14:59:38 +10:00
2021-10-28 14:59:38 +10:00
2021-10-28 14:59:38 +10:00
2021-08-12 21:41:10 +02:00
2021-08-10 20:14:01 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-09-22 22:11:53 +03:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-10-28 14:59:38 +10:00
2021-08-02 10:19:43 +02:00
2021-10-28 17:20:45 +10:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-28 19:00:20 +02:00
2021-08-10 20:14:01 +02:00
2021-10-01 15:55:47 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-05-17 21:19:48 +02:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-19 09:02:55 +09:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2021-08-10 20:14:01 +02:00
2021-08-02 10:19:43 +02:00