summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_rast.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-12-16 17:08:13 -0700
committerBrian Paul <[email protected]>2009-12-17 08:17:04 -0700
commitb9d33db0a4cb818154b713a27834f66025b14672 (patch)
treedba2f1ad9f604f920527302211b6482ce869abbb /src/gallium/drivers/llvmpipe/lp_rast.c
parent7f2ba80025e4b534db72427a206e6a542fc2f520 (diff)
llvmpipe: improve the in/out test a little
Instead of: s = c + step m = s > 0 Do: m = step > c (with negated c)
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c
index b1bd27d3406..015865a6d6f 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast.c
@@ -281,11 +281,10 @@ void lp_rast_shade_tile( struct lp_rasterizer *rast,
const union lp_rast_cmd_arg arg )
{
/* Set c1,c2,c3 to large values so the in/out test always passes */
- const int32_t c1 = INT_MAX/2, c2 = INT_MAX/2, c3 = INT_MAX/2;
+ const int32_t c1 = INT_MIN/2, c2 = INT_MIN/2, c3 = INT_MIN/2;
const struct lp_rast_shader_inputs *inputs = arg.shade_tile;
const unsigned tile_x = rast->tasks[thread_index].x;
const unsigned tile_y = rast->tasks[thread_index].y;
- const unsigned mask = ~0;
unsigned x, y;
LP_DBG(DEBUG_RAST, "%s\n", __FUNCTION__);