Mesa (master): llvmpipe: use util_iround in place of round

Keith Whitwell keithw at kemper.freedesktop.org
Fri Aug 27 12:43:27 UTC 2010


Module: Mesa
Branch: master
Commit: 55f4eab93cf964a2ffa540fef9485b6f737a6f41
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=55f4eab93cf964a2ffa540fef9485b6f737a6f41

Author: Keith Whitwell <keithw at vmware.com>
Date:   Fri Aug 27 13:40:23 2010 +0100

llvmpipe: use util_iround in place of round

Fix mingw build.

---

 src/gallium/drivers/llvmpipe/lp_setup_line.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_setup_line.c b/src/gallium/drivers/llvmpipe/lp_setup_line.c
index cf770f5..ce2da55 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_line.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_line.c
@@ -280,7 +280,7 @@ lp_setup_line( struct lp_setup_context *setup,
    int nr_planes = 4;
    
    /* linewidth should be interpreted as integer */
-   int fixed_width = subpixel_snap(round(width));
+   int fixed_width = util_iround(width) * FIXED_ONE;
 
    float x_offset=0;
    float y_offset=0;




More information about the mesa-commit mailing list