aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2013-04-02 13:38:07 -0700
committerMatt Turner <[email protected]>2013-04-08 10:30:40 -0700
commit2e177bc8a5585d4b0234b1b680617bfd2ae6ddf8 (patch)
tree59e01b9e31bf1282e467c275885a0c29c69e1a41 /src/mesa
parenta5a76782d5a4c251a47dfa18237b8b8eaeadb54d (diff)
register_allocate: Fix the type of best_benefit.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/program/register_allocate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/register_allocate.c b/src/mesa/program/register_allocate.c
index 2c826fc6604..e276b8ac84b 100644
--- a/src/mesa/program/register_allocate.c
+++ b/src/mesa/program/register_allocate.c
@@ -586,7 +586,7 @@ int
ra_get_best_spill_node(struct ra_graph *g)
{
unsigned int best_node = -1;
- unsigned int best_benefit = 0.0;
+ float best_benefit = 0.0;
unsigned int n;
for (n = 0; n < g->count; n++) {