aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/lima/lima_gem.c
diff options
context:
space:
mode:
authorThomas Zimmermann <[email protected]>2022-02-09 16:16:15 +0000
committerThomas Zimmermann <[email protected]>2022-02-10 13:49:11 +0000
commit67b723f5b74254d27962b1b59bddfee1584575ff (patch)
tree094717adc1ae458e37201718379dc3de01769eed /drivers/gpu/drm/lima/lima_gem.c
parentdrm/fb-helper: Fix vertical damage clipping (diff)
downloadkernel-67b723f5b74254d27962b1b59bddfee1584575ff.tar.gz
kernel-67b723f5b74254d27962b1b59bddfee1584575ff.zip
drm/fb-helper: Calculate damaged area in separate helper
Add drm_fb_helper_memory_range_to_clip(), a helper function that accepts an linear range of video memory and converts it into a rectangle. The computed rectangle describes the damaged area in terms of scanlines and pixels per scanline. While at it, make the code more readable by using struct drm_rect and related helpers. The code was previously part of the deferred I/O helpers, but is also useful for damage handling of regular write operations. Update the deferred I/O code to use the new function. v2: * rename helper (Javier) Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Javier Martinez Canillas <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/lima/lima_gem.c')
0 files changed, 0 insertions, 0 deletions