Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--intern/cycles/CMakeLists.txt2
-rw-r--r--intern/cycles/device/device.cpp2
-rw-r--r--intern/cycles/device/device_network.h4
-rw-r--r--intern/cycles/device/device_opencl.cpp4
-rw-r--r--intern/cycles/render/session.h2
-rw-r--r--intern/cycles/render/tile.cpp2
6 files changed, 12 insertions, 4 deletions
diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt
index 74bac846aa4..0041f11c288 100644
--- a/intern/cycles/CMakeLists.txt
+++ b/intern/cycles/CMakeLists.txt
@@ -8,7 +8,7 @@ include(cmake/external_libs.cmake)
# Build Flags
set(GCC_WARNING_FLAGS "-Wall -Wextra -Wno-unused-parameter -Wno-long-long")
-set(GCC_OPTIM_FLAGS "-ffast-math -fPIC -msse -msse2 -msse3 -mtune=native")
+set(GCC_OPTIM_FLAGS "-ffast-math -msse -msse2 -msse3 -mtune=native")
if(APPLE)
set(CMAKE_CXX_FLAGS "${GCC_WARNING_FLAGS} ${GCC_OPTIM_FLAGS}")
diff --git a/intern/cycles/device/device.cpp b/intern/cycles/device/device.cpp
index ab57d7cfe86..6ba50154dac 100644
--- a/intern/cycles/device/device.cpp
+++ b/intern/cycles/device/device.cpp
@@ -108,7 +108,7 @@ void Device::draw_pixels(device_memory& rgba, int y, int w, int h, int width, in
/* for multi devices, this assumes the ineffecient method that we allocate
all pixels on the device even though we only render to a subset */
- pixels += sizeof(uint8_t)*4*y*w;
+ pixels += 4*y*w;
glDrawPixels(w, h, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
diff --git a/intern/cycles/device/device_network.h b/intern/cycles/device/device_network.h
index ebb1e43a7a7..775517586d3 100644
--- a/intern/cycles/device/device_network.h
+++ b/intern/cycles/device/device_network.h
@@ -19,6 +19,8 @@
#ifndef __DEVICE_NETWORK_H__
#define __DEVICE_NETWORK_H__
+#ifdef WITH_NETWORK
+
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <boost/array.hpp>
@@ -300,5 +302,7 @@ private:
CCL_NAMESPACE_END
+#endif
+
#endif /* __DEVICE_NETWORK_H__ */
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp
index a41238ffe09..b58dfe7f168 100644
--- a/intern/cycles/device/device_opencl.cpp
+++ b/intern/cycles/device/device_opencl.cpp
@@ -353,19 +353,23 @@ public:
string clbin = string_printf("cycles_kernel_%s_%s.clbin", device_md5.c_str(), kernel_md5.c_str());;
clbin = path_user_get(path_join("cache", clbin));
+#ifndef __APPLE__
if(path_exists(clbin)) {
/* if exists already, try use it */
if(!load_binary(kernel_path, clbin))
return false;
}
else {
+#endif
/* compile kernel */
if(!compile_kernel(kernel_path, kernel_md5))
return false;
+#ifndef __APPLE__
/* save binary for reuse */
save_binary(clbin);
}
+#endif
/* find kernels */
ckPathTraceKernel = clCreateKernel(cpProgram, "kernel_ocl_path_trace", &ciErr);
diff --git a/intern/cycles/render/session.h b/intern/cycles/render/session.h
index ca775939c09..4d5cf434098 100644
--- a/intern/cycles/render/session.h
+++ b/intern/cycles/render/session.h
@@ -58,7 +58,7 @@ public:
background = false;
output_path = "";
- progressive = true;
+ progressive = false;
passes = INT_MAX;
tile_size = 64;
min_size = 64;
diff --git a/intern/cycles/render/tile.cpp b/intern/cycles/render/tile.cpp
index 61f3af7aa10..450090c42f8 100644
--- a/intern/cycles/render/tile.cpp
+++ b/intern/cycles/render/tile.cpp
@@ -96,7 +96,7 @@ void TileManager::set_tiles()
bool TileManager::done()
{
- return (state.pass+1 >= passes && state.resolution == 1);
+ return (state.pass+1 >= passes);
}
bool TileManager::next()