diff options
author | Keith Whitwell <[email protected]> | 2010-08-24 23:05:57 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2010-08-31 23:31:45 +0100 |
commit | e38d2f716381385e2aad219a3d125065ec0a01bd (patch) | |
tree | c0535e4beb030bcdaf5edccd2131b364ed9c8d6a /src/gallium/drivers | |
parent | 0aa3a09ced07e150901cd0f7a7917556a018c252 (diff) |
llvmpipe: slightly simplify build_mask
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_rast_tri.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast_tri.c b/src/gallium/drivers/llvmpipe/lp_rast_tri.c index bdb8d131ccd..dbaa8e023a4 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast_tri.c +++ b/src/gallium/drivers/llvmpipe/lp_rast_tri.c @@ -229,13 +229,9 @@ build_mask(int c, int dcdx, int dcdy) */ __m128i cstep0 = _mm_add_epi32(c0, step); - /* Scale up step for moving between quads. This should probably - * be an arithmetic shift left, but there doesn't seem to be - * such a thing in SSE. It's unlikely that the step value is - * going to be large enough to overflow across 4 pixels, though - * if it is that big, rendering will be incorrect anyway. + /* Scale up step for moving between quads. */ - __m128i step4 = _mm_slli_epi32(step, 1); + __m128i step4 = _mm_add_epi32(step, step); /* Get values for the remaining quads: */ |