ra: cleanup the public API
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 1 Aug 2014 01:57:20 +0000 (18:57 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 13 Aug 2014 18:43:05 +0000 (11:43 -0700)
commit9a0b52e7c1c0d7668e1acd7bb806432bb449a9c7
tree0700c2e5e02864cd055f4c91827106b21940e49d
parentd72d67832bd7a5f2aa0c402333a7de6804ad35ef
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>
src/gallium/drivers/r300/compiler/radeon_pair_regalloc.c
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp
src/mesa/program/register_allocate.c
src/mesa/program/register_allocate.h