Cycles: change svm node decoding for more efficient code generation on GPU
These functions no longer accept NULL. They were renamed for clarity and to avoid hidden merge issues. Ref D5363
This commit is contained in:
@@ -37,8 +37,8 @@ ccl_device void svm_node_tex_checker(KernelGlobals *kg, ShaderData *sd, float *s
|
||||
uint co_offset, color1_offset, color2_offset, scale_offset;
|
||||
uint color_offset, fac_offset;
|
||||
|
||||
decode_node_uchar4(node.y, &co_offset, &color1_offset, &color2_offset, &scale_offset);
|
||||
decode_node_uchar4(node.z, &color_offset, &fac_offset, NULL, NULL);
|
||||
svm_unpack_node_uchar4(node.y, &co_offset, &color1_offset, &color2_offset, &scale_offset);
|
||||
svm_unpack_node_uchar2(node.z, &color_offset, &fac_offset);
|
||||
|
||||
float3 co = stack_load_float3(stack, co_offset);
|
||||
float3 color1 = stack_load_float3(stack, color1_offset);
|
||||
|
||||
Reference in New Issue
Block a user