diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-01 16:21:29 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-01 17:49:52 +0300 |
commit | f0a0b1eaaccf9c314f24fed8c42b27e9b219c693 (patch) | |
tree | 157a963af5039b5c67227fe28dc1df3fc26d326c | |
parent | ecd4ee75af1616ab0d164b8189acee9f62bb6231 (diff) |
Cycles: Assert in the cases when SVM node was not handled
This will help figuring out cases when node was not properly handled by the SVM
by aborting execution on CPU, where all the nodes are expected to be supported.
-rw-r--r-- | intern/cycles/kernel/svm/svm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/kernel/svm/svm.h b/intern/cycles/kernel/svm/svm.h index 42a581cbd9a..15ac6519780 100644 --- a/intern/cycles/kernel/svm/svm.h +++ b/intern/cycles/kernel/svm/svm.h @@ -448,7 +448,9 @@ ccl_device_noinline void svm_eval_nodes(KernelGlobals *kg, ShaderData *sd, Shade # endif /* __EXTRA_NODES__ */ #endif /* NODES_GROUP(NODE_GROUP_LEVEL_3) */ case NODE_END: + return; default: + kernel_assert(!"Unknown node type was passed to the SVM machine"); return; } } |