From 97cdf6b337ec948a6399cd2e8a3b5d18c7b4ca0b Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 4 Aug 2023 09:23:40 +0000 Subject: [PATCH] drm/amd/display: Write to correct dirty_rect From Benjamin Cheng d701687c898e5358f29ca11bccdfc8f54129e69c in linux-6.1.y/6.1.43 751281c55579f0cb0e56c9797d4663f689909681 in mainline linux --- sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 328111f4a67..5acc0b43f58 100644 --- a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -5025,9 +5025,9 @@ static void fill_dc_dirty_rects(struct drm_plane *plane, for (; flip_addrs->dirty_rect_count < num_clips; clips++) fill_dc_dirty_rect(new_plane_state->plane, - &dirty_rects[i], clips->x1, - clips->y1, clips->x2 - clips->x1, - clips->y2 - clips->y1, + &dirty_rects[flip_addrs->dirty_rect_count], + clips->x1, clips->y1, + clips->x2 - clips->x1, clips->y2 - clips->y1, &flip_addrs->dirty_rect_count, false); return; -- 2.20.1