Module: Mesa Branch: master Commit: b568a5f6a8c6bb07b27e9badce01a8a73ba56c03 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b568a5f6a8c6bb07b27e9badce01a8a73ba56c03
Author: Matt Turner <[email protected]> Date: Sun Jul 12 18:01:54 2015 -0700 util: Avoid double promotion. Reviewed-by: Iago Toral Quiroga <[email protected]> --- src/util/register_allocate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c index 2ad8c3c..95be20f 100644 --- a/src/util/register_allocate.c +++ b/src/util/register_allocate.c @@ -648,7 +648,7 @@ ra_get_best_spill_node(struct ra_graph *g) float cost = g->nodes[n].spill_cost; float benefit; - if (cost <= 0.0) + if (cost <= 0.0f) continue; if (g->nodes[n].in_stack) _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
