summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-11-20 23:46:03 -0800
committerMatt Turner <[email protected]>2014-12-01 11:32:54 -0800
commit2e007fd621dba6e298c67e8bd1a8f26a4b6dc984 (patch)
tree7bdbb261b8ed75f3ed85d94162f98961f7fa1a44 /src/util
parent933c67877678704c2d1a11b46c2703a3f04178ce (diff)
ra: Don't use regs as the ralloc context.
The i965 backends pass something out of 'screen', which is allocated per-process, making using this as a ralloc context not thread-safe. All callers ra_alloc_interference_graph() already ralloc_free() its return value. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/register_allocate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c
index 6cf7ce721ed..1cfd66fc97d 100644
--- a/src/util/register_allocate.c
+++ b/src/util/register_allocate.c
@@ -374,7 +374,7 @@ ra_alloc_interference_graph(struct ra_regs *regs, unsigned int count)
struct ra_graph *g;
unsigned int i;
- g = rzalloc(regs, struct ra_graph);
+ g = rzalloc(NULL, struct ra_graph);
g->regs = regs;
g->nodes = rzalloc_array(g, struct ra_node, count);
g->count = count;