Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernel_light.h
| Context not available. | |||||
| return __float_as_int(data3.x); | return __float_as_int(data3.x); | ||||
sergey: Use UNLIKELY? Same applies to the checks below. | |||||
| } | } | ||||
| ccl_device bool light_select_reached_max_bounces(KernelGlobals *kg, int index, int bounce) | |||||
sergeyUnsubmitted Not Done Inline ActionsDid you test asm output/performance with using inlined function? sergey: Did you test asm output/performance with using inlined function? | |||||
| { | |||||
| float4 data4 = kernel_tex_fetch(__light_data, index*LIGHT_SIZE + 4); | |||||
| return (bounce > __float_as_int(data4.x)); | |||||
| } | |||||
| ccl_device int lamp_light_eval_sample(KernelGlobals *kg, float randt) | ccl_device int lamp_light_eval_sample(KernelGlobals *kg, float randt) | ||||
| { | { | ||||
| /* sample index */ | /* sample index */ | ||||
| Context not available. | |||||
Use UNLIKELY? Same applies to the checks below.