summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2014-09-05 20:59:31 -0400
committerAndreas Boll <[email protected]>2014-09-12 16:07:47 +0200
commitec046bc08ef8ccf69e867635c7d1e2e032acce36 (patch)
treee550bc4f0dc0fe7d0faad9d51c36f815662a410b /src/mesa
parentafd82dcad127b64381ca6d80d0e499368074f474 (diff)
ra: note a restriction in the interfence graph API
As noted in the previous commit, this was introduced in 567e2769b81863b6dffdac3826a6b729ce6ea37c ("ra: make the p, q test more efficient"), but I forgot to mention it. Signed-off-by: Connor Abbott <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/program/register_allocate.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/program/register_allocate.h b/src/mesa/program/register_allocate.h
index bfc9190dcbe..dc687449532 100644
--- a/src/mesa/program/register_allocate.h
+++ b/src/mesa/program/register_allocate.h
@@ -56,7 +56,10 @@ void ra_set_finalize(struct ra_regs *regs, unsigned int **conflicts);
* Each interference graph node is a virtual variable in the IL. It
* is up to the user to ra_set_node_class() for the virtual variable,
* and compute live ranges and ra_node_interfere() between conflicting
- * live ranges.
+ * live ranges. Note that an interference *must not* be added between
+ * two nodes if their classes haven't been assigned yet. The user
+ * should set the class of each node before building the interference
+ * graph.
*/
struct ra_graph *ra_alloc_interference_graph(struct ra_regs *regs,
unsigned int count);