Reset traps_count and ptrap when necessary for the next trapezoid cliprect

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>
This commit is contained in:
Michel Dänzer 2013-09-20 10:41:10 +02:00 committed by Eric Anholt
parent 61fca4342a
commit 39e95cd0f5

View 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++;