summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorConnor Abbott <cwabbott0@gmail.com>2014-07-31 18:57:20 -0700
committerKenneth Graunke <kenneth@whitecape.org>2014-08-13 11:43:05 -0700
commit9a0b52e7c1c0d7668e1acd7bb806432bb449a9c7 (patch)
tree0700c2e5e02864cd055f4c91827106b21940e49d /src/gallium
parentd72d67832bd7a5f2aa0c402333a7de6804ad35ef (diff)
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 <connor.abbott@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c2
1 files changed, 1 insertions, 1 deletions
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;
}