Reset traps_count and ptrap when necessary for the next trapezoid cliprect
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 20 Sep 2013 08:41:10 +0000 (10:41 +0200)
committerEric Anholt <eric@anholt.net>
Wed, 18 Dec 2013 19:23:54 +0000 (11:23 -0800)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64912
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: He Junyan <junyan.he@inbox.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
glamor/glamor_trapezoid.c

index 57a178c..7c934e3 100644 (file)
@@ -934,6 +934,9 @@ NTRAPS_LOOP_AGAIN:
                                traps_not_completed -= traps_count;
                                glamor_flush_composite_triangles(screen);
                                goto NTRAPS_LOOP_AGAIN;
+                       } else {
+                               ptrap = traps;
+                               traps_count = ntrap;
                        }
 
                        pbox++;