Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernel_avx.cpp
| Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
| void kernel_cpu_avx_convert_to_half_float(KernelGlobals *kg, uchar4 *rgba, float *buffer, float sample_scale, int x, int y, int offset, int stride) | void kernel_cpu_avx_convert_to_half_float(KernelGlobals *kg, uchar4 *rgba, float *buffer, float sample_scale, int x, int y, int offset, int stride) | ||||
| { | { | ||||
| kernel_film_convert_to_half_float(kg, rgba, buffer, sample_scale, x, y, offset, stride); | kernel_film_convert_to_half_float(kg, rgba, buffer, sample_scale, x, y, offset, stride); | ||||
| } | } | ||||
| /* Shader Evaluate */ | /* Shader Evaluate */ | ||||
| void kernel_cpu_avx_shader(KernelGlobals *kg, uint4 *input, float4 *output, int type, int i, int offset, int sample) | void kernel_cpu_avx_shader(KernelGlobals *kg, uint4 *input, float4 *output, int type, Transform *tfm, int i, int offset, int sample) | ||||
| { | { | ||||
| if(type >= SHADER_EVAL_BAKE) | if(type >= SHADER_EVAL_BAKE) | ||||
| kernel_bake_evaluate(kg, input, output, (ShaderEvalType)type, i, offset, sample); | kernel_bake_evaluate(kg, input, output, (ShaderEvalType)type, tfm, i, offset, sample); | ||||
| else | else | ||||
| kernel_shader_evaluate(kg, input, output, (ShaderEvalType)type, i, sample); | kernel_shader_evaluate(kg, input, output, (ShaderEvalType)type, i, sample); | ||||
| } | } | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #else | #else | ||||
| /* needed for some linkers in combination with scons making empty compilation unit in a library */ | /* needed for some linkers in combination with scons making empty compilation unit in a library */ | ||||
| void __dummy_function_cycles_avx(void); | void __dummy_function_cycles_avx(void); | ||||
| void __dummy_function_cycles_avx(void) {} | void __dummy_function_cycles_avx(void) {} | ||||
| #endif | #endif | ||||