summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFrancesco Lavra <flavra@baylibre.com>2026-02-10 20:35:45 +0300
committerThomas Zimmermann <tzimmermann@suse.de>2026-05-04 15:55:40 +0300
commitc28c22c8cfbd43f2ad71a157324d9fbebc0d0f2e (patch)
treee026c6f27c566e2b4d10a39f8ae90dd636c51143 /include
parent8acd2d7e0889ac62bc102bd7b648cd7bee04f902 (diff)
downloadlinux-c28c22c8cfbd43f2ad71a157324d9fbebc0d0f2e.tar.xz
drm/fb-helper: Fix clipping when damage area spans a single scanline
When the damage area resulting from a dirty memory range spans a single scanline, the width of the rectangle is calculated dynamically because it may not coincide with the framebuffer width. If the dirty range ends exactly at the end of the scanline, the `bit_end` variable is incorrectly assigned a 0 value, which results in a bogus clip rectangle where the x2 coordinate is 0. This prevents the dirty scanline from being flushed to the hardware. Change the calculation of the `bit_end` value to fix the x2 coordinate value in the above edge case. Fixes: ded74cafeea9 ("drm/fb-helper: Clip damage area horizontally") Signed-off-by: Francesco Lavra <flavra@baylibre.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patch.msgid.link/20260210173545.733937-1-flavra@baylibre.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions