Mesa (master): util: Avoid double promotion.

Matt Turner mattst88 at kemper.freedesktop.org
Wed Jul 29 16:32:06 UTC 2015


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

Author: Matt Turner <mattst88 at gmail.com>
Date:   Sun Jul 12 18:01:54 2015 -0700

util: Avoid double promotion.

Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>

---

 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)




More information about the mesa-commit mailing list