Cycles: Cleanup, indentation
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 11 Dec 2018 11:57:57 +0000 (12:57 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 11 Dec 2018 11:57:57 +0000 (12:57 +0100)
intern/cycles/render/nodes.cpp
intern/cycles/render/svm.cpp

index 1943f8c3e2b2da75d255dc4c7e9f3c2bf00de96d..a1f88dca4665bbffbad80e471d8f2de40cc7e53e 100644 (file)
@@ -1713,9 +1713,9 @@ void RGBToBWNode::constant_fold(const ConstantFolder& folder)
 void RGBToBWNode::compile(SVMCompiler& compiler)
 {
        compiler.add_node(NODE_CONVERT,
-                        NODE_CONVERT_CF,
-                        compiler.stack_assign(inputs[0]),
-                        compiler.stack_assign(outputs[0]));
+                         NODE_CONVERT_CF,
+                         compiler.stack_assign(inputs[0]),
+                         compiler.stack_assign(outputs[0]));
 }
 
 void RGBToBWNode::compile(OSLCompiler& compiler)
index b380117e729c185de2806e8bb57e61ec271f3013..fb32f1ba0946e7269c4364cdee349101a035c333 100644 (file)
@@ -212,6 +212,9 @@ int SVMCompiler::stack_find_offset(int size)
                        while(i >= offset)
                                active_stack.users[i--] = 1;
 
+                       if (offset == 255) {
+                               abort();
+                       }
                        return offset;
                }
        }