projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88cac12
)
util/ra: Assert nodes are in-bounds in add_node_interference
author
Jason Ekstrand
<jason@jlekstrand.net>
Tue, 14 May 2019 15:20:35 +0000
(10:20 -0500)
committer
Jason Ekstrand
<jason@jlekstrand.net>
Tue, 14 May 2019 17:30:22 +0000
(12:30 -0500)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/util/register_allocate.c
patch
|
blob
|
history
diff --git
a/src/util/register_allocate.c
b/src/util/register_allocate.c
index
94528f7
..
fe00af6
100644
(file)
--- a/
src/util/register_allocate.c
+++ b/
src/util/register_allocate.c
@@
-572,6
+572,7
@@
void
ra_add_node_interference(struct ra_graph *g,
unsigned int n1, unsigned int n2)
{
+ assert(n1 < g->count && n2 < g->count);
if (n1 != n2 && !BITSET_TEST(g->nodes[n1].adjacency, n2)) {
ra_add_node_adjacency(g, n1, n2);
ra_add_node_adjacency(g, n2, n1);