
The goal of this patch is to have limit the number of times kernels needs to be compiled and are reused as kernels with different compile directives can lead to identical same binaries. The implementation does this by stripping the compile directives. and reshuffling kernels so the output is more likely to be the same. We focussed on the kernels where it was easy to detect and maintain (bundle, bake, displace, do_volume and background). More optimizations could be done but they are probably less obvious. Merged the data_init and state_buffer_size kernels to split_bundle. This patch will also remove empty kernels for do_volume and bake when their features are not enabled. When using the benchmark files there are less background, bake and do_volume kernels compiled. Fix: T61576, T61501, T61466 Reviewed By: brecht, #cycles Differential Revision: https://developer.blender.org/D4390
31 lines
1.3 KiB
Common Lisp
31 lines
1.3 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/kernel_compat_opencl.h" // PRECOMPILED
|
|
#include "kernel/split/kernel_split_common.h" // PRECOMPILED
|
|
|
|
#include "kernel/kernels/opencl/kernel_data_init.cl"
|
|
#include "kernel/kernels/opencl/kernel_path_init.cl"
|
|
#include "kernel/kernels/opencl/kernel_state_buffer_size.cl"
|
|
#include "kernel/kernels/opencl/kernel_scene_intersect.cl"
|
|
#include "kernel/kernels/opencl/kernel_queue_enqueue.cl"
|
|
#include "kernel/kernels/opencl/kernel_shader_setup.cl"
|
|
#include "kernel/kernels/opencl/kernel_shader_sort.cl"
|
|
#include "kernel/kernels/opencl/kernel_enqueue_inactive.cl"
|
|
#include "kernel/kernels/opencl/kernel_next_iteration_setup.cl"
|
|
#include "kernel/kernels/opencl/kernel_indirect_subsurface.cl"
|
|
#include "kernel/kernels/opencl/kernel_buffer_update.cl"
|