Paste P457

Fix for T50985
ActivePublic

Authored by Hristo Gueorguiev (nirved) on Mar 24 2017, 9:28 PM.
Tags
None
Subscribers
None
1diff --git a/intern/cycles/device/opencl/opencl_base.cpp b/intern/cycles/device/opencl/opencl_base.cpp
2index 0328dfe..c3a499d 100644
3--- a/intern/cycles/device/opencl/opencl_base.cpp
4+++ b/intern/cycles/device/opencl/opencl_base.cpp
5@@ -612,7 +612,7 @@ void OpenCLDeviceBase::shader(DeviceTask& task)
6
7​ string OpenCLDeviceBase::kernel_build_options(const string *debug_src)
8​ {
9- string build_options = "-cl-fast-relaxed-math ";
10+ string build_options = "-cl-no-signed-zeros -cl-mad-enable ";
11
12​ if(platform_name == "NVIDIA CUDA") {
13​ build_options += "-D__KERNEL_OPENCL_NVIDIA__ "