mbox series

[0/3] Fixes for damage clips handling

Message ID 20220715134958.2605746-1-jouni.hogander@intel.com (mailing list archive)
Headers show
Series Fixes for damage clips handling | expand

Message

Hogander, Jouni July 15, 2022, 1:49 p.m. UTC
Currently damage clips handling is broken for planes when using big
framebuffer + offset in case kms driver adjusts drm_plane_state.src
coords. This is because damage clips are using coords relative to
original coords from user-space.

This patchset is fixing this by using original
coords from user-space instead of drm_plane_state.src when iterating
damage_clips.

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Mika Kahola <mika.kahola@intel.com>

Jouni Högander (3):
  drm: Use original src rect while initializing damage iterator
  drm/i915/display: Use original src in psr2 sel fetch area calculation
  drm/i915/display: Use drm helper instead of own loop for damage clips

 drivers/gpu/drm/drm_damage_helper.c      | 11 +++++++----
 drivers/gpu/drm/i915/display/intel_psr.c | 20 +++++++-------------
 2 files changed, 14 insertions(+), 17 deletions(-)