summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2014-07-31 18:57:20 -0700
committerKenneth Graunke <[email protected]>2014-08-13 11:43:05 -0700
commit9a0b52e7c1c0d7668e1acd7bb806432bb449a9c7 (patch)
tree0700c2e5e02864cd055f4c91827106b21940e49d /src/gallium/drivers/r300
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 <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300')
-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;
}