diff options
author | Brian Paul <[email protected]> | 2010-01-13 09:29:43 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-01-13 09:32:21 -0700 |
commit | 212f3a6cb3cb49127a6e5588553fe2d327f46563 (patch) | |
tree | 6ff60cb73f91564b9c0be2e90387490254b3f668 /src/gallium/drivers | |
parent | db83ad4b4353ea6f9c755f18bf1455ea78b5bf12 (diff) |
llvmpipe: tweak subpixel_snap() arithmetic
This adjustment fixes some rasterization differences between llvmpipe
and softpipe (and other renderers).
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup_tri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c index 9248125de8b..575265b0f50 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c +++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c @@ -237,7 +237,7 @@ static void setup_tri_coefficients( struct setup_context *setup, static inline int subpixel_snap( float a ) { - return util_iround(FIXED_ONE * a); + return util_iround(FIXED_ONE * a - (FIXED_ONE / 2)); } |