From 9a0b52e7c1c0d7668e1acd7bb806432bb449a9c7 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Thu, 31 Jul 2014 18:57:20 -0700 Subject: ra: cleanup the public API Previously, there were 3 entrypoints into parts of the actual allocator, and an API called ra_allocate_no_spills() that called all 3. Nobody would ever want to call any of the 3 entrypoints by themselves, so everybody just used ra_allocate_no_spills(). So just make them static functions, and while we're at it rename ra_allocate_no_spills() to ra_allocate() since there's no equivalent "with spills," because the backend is supposed to handle spilling. Signed-off-by: Connor Abbott Reviewed-by: Eric Anholt Reviewed-by: Kenneth Graunke --- src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c b/src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c index 7b02e53a482..936c88db92c 100644 --- a/src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c +++ b/src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c @@ -617,7 +617,7 @@ static void do_advanced_regalloc(struct regalloc_state * s) input_node++; } - if (!ra_allocate_no_spills(graph)) { + if (!ra_allocate(graph)) { rc_error(s->C, "Ran out of hardware temporaries\n"); return; } -- cgit v1.2.3