diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2013-09-20 10:41:10 +0200 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-09-24 16:32:30 +0800 |
commit | 83f87f3bb8a0c18c3218695b1eb14065a82e8819 (patch) | |
tree | 45273b593a95a61a2e5b5cdd44e4f048313037e0 | |
parent | 29c0907d413ad5be2af3480d008018cd7f5a9e85 (diff) |
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>
-rw-r--r-- | src/glamor_trapezoid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glamor_trapezoid.c b/src/glamor_trapezoid.c index 57a178c..7c934e3 100644 --- a/src/glamor_trapezoid.c +++ b/src/glamor_trapezoid.c @@ -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++; |