summaryrefslogtreecommitdiff
path: root/src/sna/sna_damage.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-11-02 09:10:32 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-11-02 13:14:58 +0000
commite1a63de8991a6586b83c06bcb3369208871cf43d (patch)
tree114902172077ce57d99e9d652edc23ab121ed65b /src/sna/sna_damage.c
parent72bcd8f85c98502b13a67d9c606371afe513584c (diff)
sna/gen4+: Prefer GPU spans if the destination is active
Trying to avoid using the inplace scanline rasteriser for large shapes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_damage.c')
-rw-r--r--src/sna/sna_damage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_damage.c b/src/sna/sna_damage.c
index a870cbf5..73d94e1b 100644
--- a/src/sna/sna_damage.c
+++ b/src/sna/sna_damage.c
@@ -507,6 +507,7 @@ static void __sna_damage_reduce(struct sna_damage *damage)
} else {
pixman_region16_t tmp;
+ assert(n == nboxes);
pixman_region_init_rects(&tmp, boxes, nboxes);
pixman_region_subtract(region, region, &tmp);
pixman_region_fini(&tmp);