summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_rast.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-12-17 09:00:58 -0700
committerBrian Paul <[email protected]>2009-12-17 09:01:01 -0700
commit808170a0ff6c3a51a1b69a54ed8045b2e0f7d0d1 (patch)
tree8be3e9f7760648a7f2af1c86a7f694fde3ea2d4e /src/gallium/drivers/llvmpipe/lp_rast.c
parentb9d33db0a4cb818154b713a27834f66025b14672 (diff)
llvmpipe: replace INT_MIN/2 with INT_MIN
Since changing the in/out test we can just use INT_MIN to be sure the comparison against the step values always passes.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c
index 015865a6d6f..24393c8e891 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast.c
@@ -281,7 +281,7 @@ 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_MIN/2, c2 = INT_MIN/2, c3 = INT_MIN/2;
+ const int32_t c1 = INT_MIN, c2 = INT_MIN, c3 = INT_MIN;
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;