summaryrefslogtreecommitdiff
path: root/src/sna/sna_tiling.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-03-18 14:49:58 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-03-18 15:11:24 +0000
commit28371a34fa83f70a7af3c8d3bfd6c7cef9e35073 (patch)
treebb01eae3b0af7d5b590b96684c6eeb4a95e21b06 /src/sna/sna_tiling.c
parent16dac417c8049d65b3641e0f662865772faad61f (diff)
sna: Skip processing an all-clipped-out glyph
Along the slow path, skip all processing of glyphs that are not visible. This is important as the slow path handles the per-glyph redirection case, which is much more expensive. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_tiling.c')
-rw-r--r--src/sna/sna_tiling.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/sna/sna_tiling.c b/src/sna/sna_tiling.c
index 019b50a5..02ab59dd 100644
--- a/src/sna/sna_tiling.c
+++ b/src/sna/sna_tiling.c
@@ -795,21 +795,6 @@ done:
return ret;
}
-static bool
-box_intersect(BoxPtr a, const BoxRec *b)
-{
- if (a->x1 < b->x1)
- a->x1 = b->x1;
- if (a->x2 > b->x2)
- a->x2 = b->x2;
- if (a->y1 < b->y1)
- a->y1 = b->y1;
- if (a->y2 > b->y2)
- a->y2 = b->y2;
-
- return a->x1 < a->x2 && a->y1 < a->y2;
-}
-
bool
sna_tiling_copy_boxes(struct sna *sna, uint8_t alu,
PixmapPtr src, struct kgem_bo *src_bo, int16_t src_dx, int16_t src_dy,