diff options
author | Keith Whitwell <[email protected]> | 2010-01-08 13:55:32 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2010-01-11 11:06:15 +0000 |
commit | 094525fb23127e7ca253d732207bbbbe00488a6b (patch) | |
tree | 93015612779a786ec184fd4083fb7006e9b93b81 | |
parent | 16c1ad54bc5f3dc47a8a17cbc3724d913f5da005 (diff) |
llvmpipe: remove opencoded constant
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup_tri.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c index fe34903cf32..5197dca8f99 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) { |