Reduces memory allocation for split kernel.
This allows for faster rendering due to bigger global size,
specially when GPU memory is limited.
Perfromance results:
R9 290 total render time
Before After Change
BMW 4:37 4:34 -1.1 %
Classroom 14:43 14:30 -1.5 %
Fishy Cat 11:20 11:04 -2.4 %
Koro 12:11 12:04 -1.0 %
Pabellon Barcelona 22:01 20:44 -5.8 %
Pabellon Barcelona(*) 15:32 15:09 -2.5 %
(*) without glossy connected to volume
36 lines
1.2 KiB
Common Lisp
36 lines
1.2 KiB
Common Lisp
/*
|
|
* Copyright 2011-2017 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.
|
|
*/
|
|
|
|
#include "kernel_state_buffer_size.cl"
|
|
#include "kernel_data_init.cl"
|
|
#include "kernel_path_init.cl"
|
|
|
|
#include "kernel_scene_intersect.cl"
|
|
#include "kernel_lamp_emission.cl"
|
|
#include "kernel_do_volume.cl"
|
|
#include "kernel_indirect_background.cl"
|
|
#include "kernel_queue_enqueue.cl"
|
|
#include "kernel_shader_eval.cl"
|
|
#include "kernel_holdout_emission_blurring_pathtermination_ao.cl"
|
|
#include "kernel_subsurface_scatter.cl"
|
|
#include "kernel_direct_lighting.cl"
|
|
#include "kernel_shadow_blocked_ao.cl"
|
|
#include "kernel_shadow_blocked_dl.cl"
|
|
#include "kernel_next_iteration_setup.cl"
|
|
#include "kernel_indirect_subsurface.cl"
|
|
#include "kernel_buffer_update.cl"
|
|
|