diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-18 14:49:58 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-03-18 15:11:24 +0000 |
commit | 28371a34fa83f70a7af3c8d3bfd6c7cef9e35073 (patch) | |
tree | bb01eae3b0af7d5b590b96684c6eeb4a95e21b06 /src/sna/sna_io.c | |
parent | 16dac417c8049d65b3641e0f662865772faad61f (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_io.c')
-rw-r--r-- | src/sna/sna_io.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c index 41322ad2..540f3a60 100644 --- a/src/sna/sna_io.c +++ b/src/sna/sna_io.c @@ -41,21 +41,6 @@ /* XXX Need to avoid using GTT fenced access for I915_TILING_Y on 855GM */ -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; -} - static inline bool upload_too_large(struct sna *sna, int width, int height) { return width * height * 4 > sna->kgem.max_upload_tile_size; |