mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
util/ra: Add a getter for a node class
Complements the existing getters and the setter for node class. To be used in the Panfrost RA refactor. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
688d9b4fb7
commit
b2a3ca6bd5
2 changed files with 8 additions and 0 deletions
|
|
@ -557,6 +557,13 @@ ra_set_node_class(struct ra_graph *g,
|
|||
g->nodes[n].class = class;
|
||||
}
|
||||
|
||||
unsigned int
|
||||
ra_get_node_class(struct ra_graph *g,
|
||||
unsigned int n)
|
||||
{
|
||||
return g->nodes[n].class;
|
||||
}
|
||||
|
||||
unsigned int
|
||||
ra_add_node(struct ra_graph *g, unsigned int class)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ struct ra_graph *ra_alloc_interference_graph(struct ra_regs *regs,
|
|||
unsigned int count);
|
||||
void ra_resize_interference_graph(struct ra_graph *g, unsigned int count);
|
||||
void ra_set_node_class(struct ra_graph *g, unsigned int n, unsigned int c);
|
||||
unsigned int ra_get_node_class(struct ra_graph *g, unsigned int n);
|
||||
unsigned int ra_add_node(struct ra_graph *g, unsigned int c);
|
||||
void ra_set_select_reg_callback(struct ra_graph *g,
|
||||
unsigned int (*callback)(struct ra_graph *g,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue