Skip to content

Fixes for damage clips handling

Jouni Högander dri-devel intel-gfx 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 10 repliesIn review
  2. v13 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm: Use original src rect while initializing damage iteratordrivers/gpu/drm/drm_damage_helper.c+7 -41 reply
2/4drm/i915/display: Use original src in psr2 sel fetch area calculationdrivers/gpu/drm/i915/display/intel_psr.c+2 -11 reply
3/4drm/i915/display: Use drm helper instead of own loop for damage clipsdrivers/gpu/drm/i915/display/intel_psr.c+5 -121 reply
4/4drm/tests: Set also mock plane src_x, src_y, src_w and src_hdrivers/gpu/drm/tests/drm_damage_helper_test.c+5 -02 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMika KaholaMaíra Canal
1/4R-b
2/4R-b
3/4R-b
4/4R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] Fixes for damage clips handling

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.

v2: Modify drm unit tests accordingly

Cc Daniel Vetter <[email protected]>
Cc Maarten Lankhorst <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Ville Syrjälä <[email protected]>
Cc José Roberto de Souza <[email protected]>
Cc Mika Kahola <[email protected]>
Cc Maíra Canal <[email protected]>

Jouni Högander (4):
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 drm/tests: Set also mock plane src_x, src_y, src_w and src_h

 drivers/gpu/drm/drm_damage_helper.c           | 11 ++++++----
 drivers/gpu/drm/i915/display/intel_psr.c      | 20 +++++++------------
 .../gpu/drm/tests/drm_damage_helper_test.c    |  5 +++++
 3 files changed, 19 insertions(+), 17 deletions(-)
Signature · 1 line
2.34.1