aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2022-02-09 17:16:15 +0100
committerThomas Zimmermann <tzimmermann@suse.de>2022-02-10 14:49:11 +0100
commit67b723f5b74254d27962b1b59bddfee1584575ff (patch)
tree094717adc1ae458e37201718379dc3de01769eed /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentaa15c677cc34e626789cb65b8e7375180851c03b (diff)
downloadlinux-67b723f5b74254d27962b1b59bddfee1584575ff.tar.gz
linux-67b723f5b74254d27962b1b59bddfee1584575ff.tar.bz2
linux-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 <tzimmermann@suse.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220209161617.3553-4-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions