forked from bartvdbraak/blender
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:
parent
0106b94f9d
commit
68f2066602
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user