From dabe5cd31add8aa55b9ad4bce1b591ed4e98f1a1 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 26 Feb 2019 14:05:54 +0100 Subject: T61971: Compilation Displacement/Background Kernel Displacement and Background kernels are selectively used, but always compiled. This patch will not compile these kernels when they are not needed. Displacement kernel is only used for true displacement. Background kernel is only used when there is a (Cycles)Light of type `LIGHT_BACKGROUND`. Reviewed By: brecht, #cycles Tags: #cycles Maniphest Tasks: T61971 Differential Revision: https://developer.blender.org/D4412 --- intern/cycles/device/device.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'intern/cycles/device/device.cpp') diff --git a/intern/cycles/device/device.cpp b/intern/cycles/device/device.cpp index 327ba8e2a59..55ba62e5967 100644 --- a/intern/cycles/device/device.cpp +++ b/intern/cycles/device/device.cpp @@ -74,6 +74,10 @@ std::ostream& operator <<(std::ostream &os, << string_from_bool(requested_features.use_principled) << std::endl; os << "Use Denoising: " << string_from_bool(requested_features.use_denoising) << std::endl; + os << "Use Displacement: " + << string_from_bool(requested_features.use_true_displacement) << std::endl; + os << "Use Background Light: " + << string_from_bool(requested_features.use_background_light) << std::endl; return os; } -- cgit v1.2.3