Module: Mesa Branch: 9.1 Commit: ff4f5c340f15bb68287f62dbc5b5245dac3acc43 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ff4f5c340f15bb68287f62dbc5b5245dac3acc43
Author: Matt Turner <[email protected]> Date: Tue Apr 2 13:38:07 2013 -0700 register_allocate: Fix the type of best_benefit. Reviewed-by: Kenneth Graunke <[email protected]> (cherry picked from commit 2e177bc8a5585d4b0234b1b680617bfd2ae6ddf8) --- src/mesa/program/register_allocate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/program/register_allocate.c b/src/mesa/program/register_allocate.c index 88793db..d5acc9f 100644 --- a/src/mesa/program/register_allocate.c +++ b/src/mesa/program/register_allocate.c @@ -545,7 +545,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++) { _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
