Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2011-2013 Blender Foundation
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Templated common implementation part of all CPU kernels.
|
|
|
|
*
|
|
|
|
* The idea is that particular .cpp files sets needed optimization flags and
|
|
|
|
* simply includes this file without worry of copying actual implementation over.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// clang-format off
|
|
|
|
#include "kernel/device/cpu/compat.h"
|
|
|
|
|
|
|
|
#ifndef KERNEL_STUB
|
|
|
|
# include "kernel/device/cpu/globals.h"
|
|
|
|
# include "kernel/device/cpu/image.h"
|
|
|
|
|
|
|
|
# include "kernel/integrator/integrator_state.h"
|
|
|
|
# include "kernel/integrator/integrator_state_flow.h"
|
|
|
|
# include "kernel/integrator/integrator_state_util.h"
|
|
|
|
|
|
|
|
# include "kernel/integrator/integrator_init_from_camera.h"
|
|
|
|
# include "kernel/integrator/integrator_init_from_bake.h"
|
|
|
|
# include "kernel/integrator/integrator_intersect_closest.h"
|
|
|
|
# include "kernel/integrator/integrator_intersect_shadow.h"
|
|
|
|
# include "kernel/integrator/integrator_intersect_subsurface.h"
|
|
|
|
# include "kernel/integrator/integrator_intersect_volume_stack.h"
|
|
|
|
# include "kernel/integrator/integrator_shade_background.h"
|
|
|
|
# include "kernel/integrator/integrator_shade_light.h"
|
|
|
|
# include "kernel/integrator/integrator_shade_shadow.h"
|
|
|
|
# include "kernel/integrator/integrator_shade_surface.h"
|
|
|
|
# include "kernel/integrator/integrator_shade_volume.h"
|
|
|
|
# include "kernel/integrator/integrator_megakernel.h"
|
|
|
|
|
|
|
|
# include "kernel/kernel_film.h"
|
|
|
|
# include "kernel/kernel_adaptive_sampling.h"
|
|
|
|
# include "kernel/kernel_bake.h"
|
|
|
|
# include "kernel/kernel_id_passes.h"
|
|
|
|
|
|
|
|
#else
|
|
|
|
# define STUB_ASSERT(arch, name) \
|
|
|
|
assert(!(#name " kernel stub for architecture " #arch " was called!"))
|
|
|
|
#endif /* KERNEL_STUB */
|
|
|
|
// clang-format on
|
|
|
|
|
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------
|
|
|
|
* Integrator.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef KERNEL_STUB
|
|
|
|
# define KERNEL_INVOKE(name, ...) (STUB_ASSERT(KERNEL_ARCH, name), 0)
|
|
|
|
#else
|
|
|
|
# define KERNEL_INVOKE(name, ...) integrator_##name(__VA_ARGS__)
|
|
|
|
#endif
|
|
|
|
|
2021-10-17 16:22:20 +02:00
|
|
|
/* TODO: Either use something like get_work_pixel(), or simplify tile which is passed here, so
|
|
|
|
* that it does not contain unused fields. */
|
|
|
|
#define DEFINE_INTEGRATOR_INIT_KERNEL(name) \
|
|
|
|
bool KERNEL_FUNCTION_FULL_NAME(integrator_##name)(const KernelGlobalsCPU *kg, \
|
|
|
|
IntegratorStateCPU *state, \
|
|
|
|
KernelWorkTile *tile, \
|
|
|
|
ccl_global float *render_buffer) \
|
|
|
|
{ \
|
|
|
|
return KERNEL_INVOKE( \
|
|
|
|
name, kg, state, tile, render_buffer, tile->x, tile->y, tile->start_sample); \
|
|
|
|
}
|
|
|
|
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
#define DEFINE_INTEGRATOR_KERNEL(name) \
|
2021-10-17 16:10:10 +02:00
|
|
|
void KERNEL_FUNCTION_FULL_NAME(integrator_##name)(const KernelGlobalsCPU *kg, \
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
IntegratorStateCPU *state) \
|
|
|
|
{ \
|
|
|
|
KERNEL_INVOKE(name, kg, state); \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define DEFINE_INTEGRATOR_SHADE_KERNEL(name) \
|
|
|
|
void KERNEL_FUNCTION_FULL_NAME(integrator_##name)( \
|
2021-10-17 16:10:10 +02:00
|
|
|
const KernelGlobalsCPU *kg, IntegratorStateCPU *state, ccl_global float *render_buffer) \
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
{ \
|
|
|
|
KERNEL_INVOKE(name, kg, state, render_buffer); \
|
|
|
|
}
|
|
|
|
|
2021-10-17 16:22:20 +02:00
|
|
|
#define DEFINE_INTEGRATOR_SHADOW_KERNEL(name) \
|
|
|
|
void KERNEL_FUNCTION_FULL_NAME(integrator_##name)(const KernelGlobalsCPU *kg, \
|
|
|
|
IntegratorStateCPU *state) \
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
{ \
|
2021-10-17 16:22:20 +02:00
|
|
|
KERNEL_INVOKE(name, kg, &state->shadow); \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define DEFINE_INTEGRATOR_SHADOW_SHADE_KERNEL(name) \
|
|
|
|
void KERNEL_FUNCTION_FULL_NAME(integrator_##name)( \
|
|
|
|
const KernelGlobalsCPU *kg, IntegratorStateCPU *state, ccl_global float *render_buffer) \
|
|
|
|
{ \
|
|
|
|
KERNEL_INVOKE(name, kg, &state->shadow, render_buffer); \
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
DEFINE_INTEGRATOR_INIT_KERNEL(init_from_camera)
|
|
|
|
DEFINE_INTEGRATOR_INIT_KERNEL(init_from_bake)
|
|
|
|
DEFINE_INTEGRATOR_KERNEL(intersect_closest)
|
|
|
|
DEFINE_INTEGRATOR_KERNEL(intersect_subsurface)
|
|
|
|
DEFINE_INTEGRATOR_KERNEL(intersect_volume_stack)
|
|
|
|
DEFINE_INTEGRATOR_SHADE_KERNEL(shade_background)
|
|
|
|
DEFINE_INTEGRATOR_SHADE_KERNEL(shade_light)
|
|
|
|
DEFINE_INTEGRATOR_SHADE_KERNEL(shade_surface)
|
|
|
|
DEFINE_INTEGRATOR_SHADE_KERNEL(shade_volume)
|
|
|
|
DEFINE_INTEGRATOR_SHADE_KERNEL(megakernel)
|
2021-10-17 16:22:20 +02:00
|
|
|
DEFINE_INTEGRATOR_SHADOW_KERNEL(intersect_shadow)
|
|
|
|
DEFINE_INTEGRATOR_SHADOW_SHADE_KERNEL(shade_shadow)
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
|
|
|
|
/* --------------------------------------------------------------------
|
|
|
|
* Shader evaluation.
|
|
|
|
*/
|
|
|
|
|
2021-10-17 16:10:10 +02:00
|
|
|
void KERNEL_FUNCTION_FULL_NAME(shader_eval_displace)(const KernelGlobalsCPU *kg,
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
const KernelShaderEvalInput *input,
|
2021-10-13 19:13:35 +02:00
|
|
|
float *output,
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
const int offset)
|
|
|
|
{
|
|
|
|
#ifdef KERNEL_STUB
|
|
|
|
STUB_ASSERT(KERNEL_ARCH, shader_eval_displace);
|
|
|
|
#else
|
|
|
|
kernel_displace_evaluate(kg, input, output, offset);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2021-10-17 16:10:10 +02:00
|
|
|
void KERNEL_FUNCTION_FULL_NAME(shader_eval_background)(const KernelGlobalsCPU *kg,
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
const KernelShaderEvalInput *input,
|
2021-10-13 19:13:35 +02:00
|
|
|
float *output,
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
const int offset)
|
|
|
|
{
|
|
|
|
#ifdef KERNEL_STUB
|
|
|
|
STUB_ASSERT(KERNEL_ARCH, shader_eval_background);
|
|
|
|
#else
|
|
|
|
kernel_background_evaluate(kg, input, output, offset);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------
|
|
|
|
* Adaptive sampling.
|
|
|
|
*/
|
|
|
|
|
|
|
|
bool KERNEL_FUNCTION_FULL_NAME(adaptive_sampling_convergence_check)(
|
2021-10-17 16:10:10 +02:00
|
|
|
const KernelGlobalsCPU *kg,
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
ccl_global float *render_buffer,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
float threshold,
|
|
|
|
bool reset,
|
|
|
|
int offset,
|
|
|
|
int stride)
|
|
|
|
{
|
|
|
|
#ifdef KERNEL_STUB
|
|
|
|
STUB_ASSERT(KERNEL_ARCH, adaptive_sampling_convergence_check);
|
|
|
|
return false;
|
|
|
|
#else
|
|
|
|
return kernel_adaptive_sampling_convergence_check(
|
|
|
|
kg, render_buffer, x, y, threshold, reset, offset, stride);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2021-10-17 16:10:10 +02:00
|
|
|
void KERNEL_FUNCTION_FULL_NAME(adaptive_sampling_filter_x)(const KernelGlobalsCPU *kg,
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
ccl_global float *render_buffer,
|
|
|
|
int y,
|
|
|
|
int start_x,
|
|
|
|
int width,
|
|
|
|
int offset,
|
|
|
|
int stride)
|
|
|
|
{
|
|
|
|
#ifdef KERNEL_STUB
|
|
|
|
STUB_ASSERT(KERNEL_ARCH, adaptive_sampling_filter_x);
|
|
|
|
#else
|
|
|
|
kernel_adaptive_sampling_filter_x(kg, render_buffer, y, start_x, width, offset, stride);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2021-10-17 16:10:10 +02:00
|
|
|
void KERNEL_FUNCTION_FULL_NAME(adaptive_sampling_filter_y)(const KernelGlobalsCPU *kg,
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
ccl_global float *render_buffer,
|
|
|
|
int x,
|
|
|
|
int start_y,
|
|
|
|
int height,
|
|
|
|
int offset,
|
|
|
|
int stride)
|
|
|
|
{
|
|
|
|
#ifdef KERNEL_STUB
|
|
|
|
STUB_ASSERT(KERNEL_ARCH, adaptive_sampling_filter_y);
|
|
|
|
#else
|
|
|
|
kernel_adaptive_sampling_filter_y(kg, render_buffer, x, start_y, height, offset, stride);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------
|
|
|
|
* Cryptomatte.
|
|
|
|
*/
|
|
|
|
|
2021-10-17 16:10:10 +02:00
|
|
|
void KERNEL_FUNCTION_FULL_NAME(cryptomatte_postprocess)(const KernelGlobalsCPU *kg,
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
ccl_global float *render_buffer,
|
|
|
|
int pixel_index)
|
|
|
|
{
|
|
|
|
#ifdef KERNEL_STUB
|
|
|
|
STUB_ASSERT(KERNEL_ARCH, cryptomatte_postprocess);
|
|
|
|
#else
|
|
|
|
kernel_cryptomatte_post(kg, render_buffer, pixel_index);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------
|
|
|
|
* Bake.
|
|
|
|
*/
|
|
|
|
/* TODO(sergey): Needs to be re-implemented. Or not? Brecht did it already :) */
|
|
|
|
|
|
|
|
void KERNEL_FUNCTION_FULL_NAME(bake)(
|
2021-10-17 16:10:10 +02:00
|
|
|
const KernelGlobalsCPU *kg, float *buffer, int sample, int x, int y, int offset, int stride)
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
{
|
|
|
|
#if 0
|
|
|
|
# ifdef KERNEL_STUB
|
|
|
|
STUB_ASSERT(KERNEL_ARCH, bake);
|
|
|
|
# else
|
|
|
|
# ifdef __BAKING__
|
|
|
|
kernel_bake_evaluate(kg, buffer, sample, x, y, offset, stride);
|
|
|
|
# endif
|
|
|
|
# endif /* KERNEL_STUB */
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
#undef KERNEL_INVOKE
|
|
|
|
#undef DEFINE_INTEGRATOR_KERNEL
|
|
|
|
#undef DEFINE_INTEGRATOR_SHADE_KERNEL
|
|
|
|
#undef DEFINE_INTEGRATOR_INIT_KERNEL
|
|
|
|
|
|
|
|
#undef KERNEL_STUB
|
|
|
|
#undef STUB_ASSERT
|
|
|
|
#undef KERNEL_ARCH
|
|
|
|
|
|
|
|
CCL_NAMESPACE_END
|