summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/register_allocate.h
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2011-03-26 22:56:08 -0700
committerTom Stellard <[email protected]>2011-04-30 11:00:15 -0700
commite4a765ae2de21dada2e1206baf6b17a381193b42 (patch)
tree3c805abed8e073f38dcdd861b7d68ac1e6cdd84f /src/mesa/program/register_allocate.h
parentdbac75fa2f8495c879d841803b494e7411427863 (diff)
ra: Add ra_set_node_reg()
This function can be used to avoid creating single register classes for input/payload registers. This makes optimistic coloring less likely to fail. Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/program/register_allocate.h')
-rw-r--r--src/mesa/program/register_allocate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/program/register_allocate.h b/src/mesa/program/register_allocate.h
index 198b89f2d7d..5b95833f394 100644
--- a/src/mesa/program/register_allocate.h
+++ b/src/mesa/program/register_allocate.h
@@ -65,6 +65,7 @@ GLboolean ra_select(struct ra_graph *g);
GLboolean ra_allocate_no_spills(struct ra_graph *g);
unsigned int ra_get_node_reg(struct ra_graph *g, unsigned int n);
+void ra_set_node_reg(struct ra_graph * g, unsigned int n, unsigned int reg);
void ra_set_node_spill_cost(struct ra_graph *g, unsigned int n, float cost);
int ra_get_best_spill_node(struct ra_graph *g);
/** @} */