drm/i915: Optimize out redundant dbuf slice updates
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 2 Apr 2024 15:50:16 +0000 (18:50 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 4 Apr 2024 13:31:06 +0000 (16:31 +0300)
commitc8361cd3c449055683f4c3f40b129a14fa564918
tree0ef2efdb14cf6340e07e2a92730542b09b390924
parent96c420d5016e5bec57dccb161744c43366b72eca
drm/i915: Optimize out redundant dbuf slice updates

if the new dbuf slices are a superset of the old
dbuf slices then we don't have to do anything in
intel_dbuf_post_plane_update(). Restructure the code
to skip such redundant dbuf slice updates. The main
benefit is slightly less confusing logs.

Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240402155016.13733-15-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/skl_watermark.c