drm/i915/fbc: Align FBC segments to 512B on glk+
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 21 Sep 2021 15:25:15 +0000 (18:25 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 24 Sep 2021 12:51:37 +0000 (15:51 +0300)
commit2f051f6774bb8c6807b2287e6ca482089bd92364
tree08d918329c03e4e33d48879d6bafeeca85a5f13e
parentbdc1a2d2a32cea5748f2b31bcf7eb865dd8a9fcf
drm/i915/fbc: Align FBC segments to 512B on glk+

Apply the same 512 byte FBC segment alignment to glk+ as we use
on skl+. The only real difference is that we now have a dedicated
register for the FBC override stride. Not 100% sure which
platforms really need the 512B alignment, but it's easiest
to just do it on everything.

Also the hardware no longer seems to misclaculate the CFB stride
for linear, so we can omit the use of the override stride for
linear unless the stride is misaligned.

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210921152517.803-3-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_fbc.c
drivers/gpu/drm/i915/i915_reg.h