Skip to content

drm/fb-helper: Fix and improve fbdevio clipping

Thomas Zimmermann dri-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v15 patches 7 repliesSuperseded

Changes in v2 from the cover letter

* rename memory-to-clip helper (Javier)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/fb-helper: Fix clip rectangle heightdrivers/gpu/drm/drm_fb_helper.c+1 -10 replies
2/5drm/fb-helper: Fix vertical damage clippingdrivers/gpu/drm/drm_fb_helper.c+1 -20 replies
3/5drm/fb-helper: Calculate damaged area in separate helperdrivers/gpu/drm/drm_fb_helper.c+20 -60 replies
4/5drm/fb-helper: Clip damage area to written memory rangedrivers/gpu/drm/drm_fb_helper.c+21 -70 replies
5/5drm/fb-helper: Clip damage area horizontallydrivers/gpu/drm/drm_fb_helper.c+12 -00 replies

Reviews trailers per patch

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

PatchJavier Martinez Canillas
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-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/5] drm/fb-helper: Fix and improve fbdevio clipping

This is one of several patchset s to improve fb deferred I/O and DRM's use of it. The patches fix several problems with the current helpers and add some easy improvements.

Deferred I/O tracks dirty pages of the screen buffer, from which DRM calculates a bounding box of the damaged area. Patches 1 and 2 resolve bugs in the computation. Specifically, it makes the damage handling work with overallocation and panning enabled.

Patches 3 to 5 add an easy performance improvement. Instead of damaging the whole viewport after a write operation, only damage the written area. For large writes the area consists of multiple scanlines, for small writes the area might consist of only a few pixels on a single scanline. Write operations now also work correctly with overallocation and panning enabled.

v2:
* rename memory-to-clip helper (Javier)

Thomas Zimmermann (5):
drm/fb-helper: Fix clip rectangle height drm/fb-helper: Fix vertical damage clipping drm/fb-helper: Calculate damaged area in separate helper drm/fb-helper: Clip damage area to written memory range drm/fb-helper: Clip damage area horizontally

 drivers/gpu/drm/drm_fb_helper.c | 69 ++++++++++++++++++++++++++-------
 1 file changed, 54 insertions(+), 15 deletions(-)
Signature · 1 line
2.34.1