drm/amd/display: add FB_DAMAGE_CLIPS support
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Tue, 15 Nov 2022 16:58:45 +0000 (11:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 2 Dec 2022 15:04:05 +0000 (10:04 -0500)
commit30ebe41582d1ea5a7de990319f9e593dad4886f7
tree01872b3bed7dfe3038dd4fb6ea4b11b78563ec73
parentfed58c70bb0764dda3085f2b21057e15209b6f9e
drm/amd/display: add FB_DAMAGE_CLIPS support

Currently, userspace doesn't have a way to communicate selective updates
to displays. So, enable support for FB_DAMAGE_CLIPS for DCN ASICs newer
than DCN301, convert DRM damage clips to dc dirty rectangles and fill
them into dirty_rects in fill_dc_dirty_rects().

Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c