Cycles: Make OpenCL folks happy to use __KERNEL_DEBUG__

Quite straightforward change, the only annoying thing is that we can't use
indentation for include directive just because of the way headers inlineing
works for OpenCL.

Might do smarter job in path_source_replace_includes() but don't want to
spend time on this yet.
This commit is contained in:
Sergey Sharybin 2014-10-05 16:00:23 +06:00
parent 0106b94f9d
commit 68f2066602
2 changed files with 6 additions and 2 deletions

@ -102,7 +102,11 @@ static string opencl_kernel_build_options(const string& platform, const string *
if(opencl_kernel_use_debug())
build_options += "-D__KERNEL_OPENCL_DEBUG__ ";
#ifdef WITH_CYCLES_DEBUG
build_options += "-D__KERNEL_DEBUG__ ";
#endif
return build_options;
}

@ -46,7 +46,7 @@
#include "kernel_path_volume.h"
#ifdef __KERNEL_DEBUG__
# include "kernel_debug.h"
#include "kernel_debug.h"
#endif
CCL_NAMESPACE_BEGIN