projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71a25a0
)
nir/spirv/cfg: Assert that blocks only ever get added once
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 5 Jan 2016 23:56:59 +0000
(15:56 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 5 Jan 2016 23:56:59 +0000
(15:56 -0800)
This effectively prevents infinite loops in cfg_walk_blocks.
src/glsl/nir/spirv/vtn_cfg.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/spirv/vtn_cfg.c
b/src/glsl/nir/spirv/vtn_cfg.c
index a8e149a00a647119149e3cf79cd270e1a83aa4df..646b960d179d484543f148ec8ee5cc93204f6c72 100644
(file)
--- a/
src/glsl/nir/spirv/vtn_cfg.c
+++ b/
src/glsl/nir/spirv/vtn_cfg.c
@@
-281,6
+281,7
@@
vtn_cfg_walk_blocks(struct vtn_builder *b, struct list_head *cf_list,
continue;
}
+ assert(block->node.link.next == NULL);
list_addtail(&block->node.link, cf_list);
switch (*block->branch & SpvOpCodeMask) {