aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_setup_tri.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2010-01-08 13:55:32 +0000
committerKeith Whitwell <[email protected]>2010-01-11 11:06:15 +0000
commit094525fb23127e7ca253d732207bbbbe00488a6b (patch)
tree93015612779a786ec184fd4083fb7006e9b93b81 /src/gallium/drivers/llvmpipe/lp_setup_tri.c
parent16c1ad54bc5f3dc47a8a17cbc3724d913f5da005 (diff)
llvmpipe: remove opencoded constant
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup_tri.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup_tri.c8
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) {