diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-18 14:54:12 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-18 14:55:23 +0000 |
commit | a73cc4bf1e554806f403c6704d1cf98491f4d444 (patch) | |
tree | 7b160af08efde70808004df9df49e67d69767ec8 /src/sna/gen6_render.c | |
parent | b43548af39f8773283b744e979ee575032183cdc (diff) |
sna/gen5: Tidy checking against hardcoded maximum 3D size
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen6_render.c')
-rw-r--r-- | src/sna/gen6_render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index 5a83fd09..8808300a 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -2647,7 +2647,7 @@ gen6_render_composite_spans(struct sna *sna, return FALSE; sna_render_reduce_damage(&tmp->base, dst_x, dst_y, width, height); - if (tmp->base.dst.width > 8192 || tmp->base.dst.height > 8192) { + if (too_large(tmp->base.dst.width, tmp->base.dst.height)) { if (!sna_render_composite_redirect(sna, &tmp->base, dst_x, dst_y, width, height)) return FALSE; @@ -3371,7 +3371,7 @@ gen6_render_fill_one(struct sna *sna, PixmapPtr dst, struct kgem_bo *bo, /* Must use the BLT if we can't RENDER... */ if (!(alu == GXcopy || alu == GXclear) || - dst->drawable.width > 8192 || dst->drawable.height > 8192) + too_large(dst->drawable.width, dst->drawable.height)) return gen6_render_fill_one_try_blt(sna, dst, bo, color, x1, y1, x2, y2, alu); |