xf86-video-intel: tools/virtual.c

Chris Wilson ickle at kemper.freedesktop.org
Tue Mar 25 02:42:11 PDT 2014


 tools/virtual.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a273b207b94933713b3dfd7edd3f6bb9b3e959b9
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Tue Mar 25 09:40:40 2014 +0000

    intel-virtual-output: Fix damage iteration over active list
    
    When iterating over the active list to mark the current damage, we need
    to chase the ->active pointer rather than ->next or else we walk the
    wrong list from the wrong starting point.
    
    Reported-by: Kirill Müller <mail at kirill-mueller.de>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76271
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/tools/virtual.c b/tools/virtual.c
index 9d01884..df92516 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -2967,7 +2967,7 @@ int main(int argc, char **argv)
 					     DisplayString(ctx.display->dpy),
 					     de->area.x, de->area.y, de->area.width, de->area.height));
 
-					for (clone = ctx.active; clone; clone = clone->next)
+					for (clone = ctx.active; clone; clone = clone->active)
 						clone_damage(clone, &de->area);
 
 					if (ctx.active)


More information about the xorg-commit mailing list