Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/render/svm.cpp
| Show First 20 Lines • Show All 298 Lines • ▼ Show 20 Lines | int SVMCompiler::stack_assign(ShaderOutput *output) | ||||
| if (output->stack_offset == SVM_STACK_INVALID) | if (output->stack_offset == SVM_STACK_INVALID) | ||||
| output->stack_offset = stack_find_offset(output->type()); | output->stack_offset = stack_find_offset(output->type()); | ||||
| return output->stack_offset; | return output->stack_offset; | ||||
| } | } | ||||
| int SVMCompiler::stack_assign_if_linked(ShaderInput *input) | int SVMCompiler::stack_assign_if_linked(ShaderInput *input) | ||||
| { | { | ||||
| if (input->link) | if (input->link || input->constant_folded_in) | ||||
| return stack_assign(input); | return stack_assign(input); | ||||
| return SVM_STACK_INVALID; | return SVM_STACK_INVALID; | ||||
| } | } | ||||
| int SVMCompiler::stack_assign_if_linked(ShaderOutput *output) | int SVMCompiler::stack_assign_if_linked(ShaderOutput *output) | ||||
| { | { | ||||
| if (!output->links.empty()) | if (!output->links.empty()) | ||||
| ▲ Show 20 Lines • Show All 654 Lines • Show Last 20 Lines | |||||