forked from bartvdbraak/blender
Cycles: Fix compilation error of OpenCL mega kernel
Was some mismatch in address space. Seems to be caused by recent additions. Additionally, moved decoupled ray marching functions under ifdef, so they don't try to use malloc() functions. Thanks Mai for testing the patch!
This commit is contained in:
parent
85fafccb4c
commit
0aa5431998
@ -142,7 +142,7 @@ ccl_device_inline void kernel_write_denoising_shadow(KernelGlobals *kg, ccl_glob
|
||||
|
||||
ccl_device_inline void kernel_update_denoising_features(KernelGlobals *kg,
|
||||
ShaderData *sd,
|
||||
ccl_global PathState *state,
|
||||
ccl_addr_space PathState *state,
|
||||
PathRadiance *L)
|
||||
{
|
||||
#ifdef __DENOISING_FEATURES__
|
||||
|
@ -418,7 +418,7 @@ ccl_device_noinline void subsurface_scatter_multi_setup(
|
||||
}
|
||||
|
||||
/* subsurface scattering step, from a point on the surface to another nearby point on the same object */
|
||||
ccl_device void subsurface_scatter_step(KernelGlobals *kg, ShaderData *sd, ccl_global PathState *state,
|
||||
ccl_device void subsurface_scatter_step(KernelGlobals *kg, ShaderData *sd, ccl_addr_space PathState *state,
|
||||
int state_flag, ShaderClosure *sc, uint *lcg_state, float disk_u, float disk_v, bool all)
|
||||
{
|
||||
float3 eval = make_float3(0.0f, 0.0f, 0.0f);
|
||||
|
@ -660,6 +660,7 @@ typedef struct VolumeSegment {
|
||||
* but the entire segment is needed to do always scattering, rather than probabilistically
|
||||
* hitting or missing the volume. if we don't know the transmittance at the end of the
|
||||
* volume we can't generate stratified distance samples up to that transmittance */
|
||||
#ifdef __VOLUME_DECOUPLED__
|
||||
ccl_device void kernel_volume_decoupled_record(KernelGlobals *kg, PathState *state,
|
||||
Ray *ray, ShaderData *sd, VolumeSegment *segment, bool heterogeneous)
|
||||
{
|
||||
@ -829,6 +830,7 @@ ccl_device void kernel_volume_decoupled_free(KernelGlobals *kg, VolumeSegment *s
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endif /* __VOLUME_DECOUPLED__ */
|
||||
|
||||
/* scattering for homogeneous and heterogeneous volumes, using decoupled ray
|
||||
* marching.
|
||||
|
Loading…
Reference in New Issue
Block a user