Cycles: Another attempt to solve CUDA compilation errors on 32bit platforms
This commit is contained in:
@@ -620,7 +620,12 @@ ccl_device void lamp_light_sample(KernelGlobals *kg, int lamp,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ccl_device bool lamp_light_eval(KernelGlobals *kg, int lamp, float3 P, float3 D, float t, LightSample *ls)
|
#if defined(__KERNEL_CUDA__) && (defined(i386) || defined(_M_IX86))
|
||||||
|
ccl_device_noinline
|
||||||
|
#else
|
||||||
|
ccl_device
|
||||||
|
#endif
|
||||||
|
bool lamp_light_eval(KernelGlobals *kg, int lamp, float3 P, float3 D, float t, LightSample *ls)
|
||||||
{
|
{
|
||||||
float4 data0 = kernel_tex_fetch(__light_data, lamp*LIGHT_SIZE + 0);
|
float4 data0 = kernel_tex_fetch(__light_data, lamp*LIGHT_SIZE + 0);
|
||||||
float4 data1 = kernel_tex_fetch(__light_data, lamp*LIGHT_SIZE + 1);
|
float4 data1 = kernel_tex_fetch(__light_data, lamp*LIGHT_SIZE + 1);
|
||||||
|
Reference in New Issue
Block a user