From 094525fb23127e7ca253d732207bbbbe00488a6b Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 8 Jan 2010 13:55:32 +0000 Subject: llvmpipe: remove opencoded constant --- src/gallium/drivers/llvmpipe/lp_setup_tri.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gallium/drivers/llvmpipe') diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c index fe34903cf3..5197dca8f9 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c +++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c @@ -287,10 +287,10 @@ do_triangle_ccw(struct setup_context *setup, } /* Bounding rectangle (in pixels) */ - tri->minx = (MIN3(x1, x2, x3) + 0xf) >> FIXED_ORDER; - tri->maxx = (MAX3(x1, x2, x3) + 0xf) >> FIXED_ORDER; - tri->miny = (MIN3(y1, y2, y3) + 0xf) >> FIXED_ORDER; - tri->maxy = (MAX3(y1, y2, y3) + 0xf) >> FIXED_ORDER; + tri->minx = (MIN3(x1, x2, x3) + (FIXED_ONE-1)) >> FIXED_ORDER; + tri->maxx = (MAX3(x1, x2, x3) + (FIXED_ONE-1)) >> FIXED_ORDER; + tri->miny = (MIN3(y1, y2, y3) + (FIXED_ONE-1)) >> FIXED_ORDER; + tri->maxy = (MAX3(y1, y2, y3) + (FIXED_ONE-1)) >> FIXED_ORDER; if (tri->miny == tri->maxy || tri->minx == tri->maxx) { -- cgit v1.2.3