Patch "drm/qxl: fix framebuffer dirty rectangle tracking." has been added to the 4.2-stable tree
Subsystems (4)
This is a note to let you know that I've just added the patch titled
drm/qxl: fix framebuffer dirty rectangle tracking.
to the 4.2-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-qxl-fix-framebuffer-dirty-rectangle-tracking.patch
and it can be found in the queue-4.2 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
60906529bec506a4bde93f04eb5e7a9dd9c42a3bMon Sep 17 00:00:00 2001
From: Gerd Hoffmann <[email protected]>
Date: Mon, 5 Oct 2015 12:20:26 +0200
Subject: drm/qxl: fix framebuffer dirty rectangle tracking.
From: Gerd Hoffmann <[email protected]>
commit 60906529bec506a4bde93f04eb5e7a9dd9c42a3b upstream.
Commit "c0fe07a drm/qxl: rewrite framebuffer support" has a bug in the dirty rectangle tracking: Instead of ignoring an empty dirty rectangle when adding a new dirty region the dirty region gets extended to the upper left corner. Fix it.
--- drivers/gpu/drm/qxl/qxl_fb.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-)
drivers/gpu/drm/qxl/qxl_fb.c +11 -8
@@ -144,14 +144,17 @@ static void qxl_dirty_update(struct qxl_spin_lock_irqsave (&qfbdev->dirty.lock, flags); -if (qfbdev->dirty.y1 < y) - y = qfbdev->dirty.y1; -if (qfbdev->dirty.y2 > y2) - y2 = qfbdev->dirty.y2; -if (qfbdev->dirty.x1 < x) - x = qfbdev->dirty.x1; -if (qfbdev->dirty.x2 > x2) - x2 = qfbdev->dirty.x2; +if ((qfbdev->dirty.y2 - qfbdev->dirty.y1) && + (qfbdev->dirty.x2 - qfbdev->dirty.x1)) { +if (qfbdev->dirty.y1 < y) + y = qfbdev->dirty.y1; +if (qfbdev->dirty.y2 > y2) + y2 = qfbdev->dirty.y2; +if (qfbdev->dirty.x1 < x) + x = qfbdev->dirty.x1; +if (qfbdev->dirty.x2 > x2) + x2 = qfbdev->dirty.x2; + } qfbdev->dirty.x1 = x; qfbdev->dirty.x2 = x2;
Patches currently in stable-queue which might be from [email protected] are
queue-4.2/drm-qxl-fix-framebuffer-dirty-rectangle-tracking.patch