Fix Cycles half float pragma for strict OpenCL compilers (like ROCm).
Differential Revision: https://developer.blender.org/D3669
This commit is contained in:
parent
7ff1750218
commit
107f1c0a2b
|
@ -1179,8 +1179,13 @@ string OpenCLDeviceBase::kernel_build_options(const string *debug_src)
|
|||
build_options += "-g -s \"" + *debug_src + "\" ";
|
||||
}
|
||||
|
||||
if(OpenCLInfo::use_debug())
|
||||
if(info.has_half_images) {
|
||||
build_options += "-D__KERNEL_CL_KHR_FP16__ ";
|
||||
}
|
||||
|
||||
if(OpenCLInfo::use_debug()) {
|
||||
build_options += "-D__KERNEL_OPENCL_DEBUG__ ";
|
||||
}
|
||||
|
||||
#ifdef WITH_CYCLES_DEBUG
|
||||
build_options += "-D__KERNEL_DEBUG__ ";
|
||||
|
|
Loading…
Reference in New Issue