Module: Mesa Branch: master Commit: ffbac58746a18591499aea212e62b32159cc0f58 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ffbac58746a18591499aea212e62b32159cc0f58
Author: Brian Paul <[email protected]> Date: Tue Oct 16 17:54:37 2012 -0600 svga: silence MSVC double/float assignment warnings --- src/gallium/drivers/svga/svga_swtnl_state.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/gallium/drivers/svga/svga_swtnl_state.c b/src/gallium/drivers/svga/svga_swtnl_state.c index 134f384..e9239ba 100644 --- a/src/gallium/drivers/svga/svga_swtnl_state.c +++ b/src/gallium/drivers/svga/svga_swtnl_state.c @@ -35,21 +35,21 @@ #include "svga_swtnl_private.h" -#define SVGA_POINT_ADJ_X -0.375 -#define SVGA_POINT_ADJ_Y -0.5 +#define SVGA_POINT_ADJ_X -0.375f +#define SVGA_POINT_ADJ_Y -0.5f -#define SVGA_LINE_ADJ_X -0.5 -#define SVGA_LINE_ADJ_Y -0.5 +#define SVGA_LINE_ADJ_X -0.5f +#define SVGA_LINE_ADJ_Y -0.5f -#define SVGA_TRIANGLE_ADJ_X -0.375 -#define SVGA_TRIANGLE_ADJ_Y -0.5 +#define SVGA_TRIANGLE_ADJ_X -0.375f +#define SVGA_TRIANGLE_ADJ_Y -0.5f static void set_draw_viewport( struct svga_context *svga ) { struct pipe_viewport_state vp = svga->curr.viewport; - float adjx = 0; - float adjy = 0; + float adjx = 0.0f; + float adjy = 0.0f; switch (svga->curr.reduced_prim) { case PIPE_PRIM_POINTS: @@ -63,8 +63,8 @@ static void set_draw_viewport( struct svga_context *svga ) */ if (svga->curr.rast->need_pipeline & SVGA_PIPELINE_FLAG_LINES) { - adjx = SVGA_LINE_ADJ_X + 0.175; - adjy = SVGA_LINE_ADJ_Y - 0.175; + adjx = SVGA_LINE_ADJ_X + 0.175f; + adjy = SVGA_LINE_ADJ_Y - 0.175f; } else { adjx = SVGA_LINE_ADJ_X; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
