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:
31dc63d
)
nir: Fix copy and pasted error message in nir_validate.
author
Kenneth Graunke
<kenneth@whitecape.org>
Sat, 28 Mar 2015 01:22:20 +0000
(18:22 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Sat, 28 Mar 2015 16:36:46 +0000
(09:36 -0700)
These are nir_cf_nodes, not ALU instructions.
Also, use unreachable() to preempt said review feedback.
v2: Do it right (thanks Ilia).
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.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
f247ae0
..
e8c9d7b
100644
(file)
--- a/
src/glsl/nir/nir_validate.c
+++ b/
src/glsl/nir/nir_validate.c
@@
-680,8
+680,7
@@
validate_cf_node(nir_cf_node *node, validate_state *state)
break;
default:
- assert(!"Invalid ALU instruction type");
- break;
+ unreachable("Invalid CF node type");
}
}