projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4ac09e
)
nir/validate: Validate SSA def parent instructions
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 24 Apr 2015 00:10:42 +0000
(17:10 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 9 May 2015 00:16:13 +0000
(17:16 -0700)
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_validate.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/nir_validate.c
b/src/glsl/nir/nir_validate.c
index a7aa79837da14a01df24e93bb836427814638391..35a853d148419c032612c5f17d8d4e77e4bea7c4 100644
(file)
--- a/
src/glsl/nir/nir_validate.c
+++ b/
src/glsl/nir/nir_validate.c
@@
-236,6
+236,8
@@
validate_ssa_def(nir_ssa_def *def, validate_state *state)
assert(!BITSET_TEST(state->ssa_defs_found, def->index));
BITSET_SET(state->ssa_defs_found, def->index);
+ assert(def->parent_instr == state->instr);
+
assert(def->num_components <= 4);
ssa_def_validate_state *def_state = ralloc(state->ssa_defs,