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:
authorCampbell Barton <ideasman42@gmail.com>2017-11-04 13:45:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-11-04 13:45:52 +0300
commitd4fe083b356d7967ce6d9716cd0e6ba3039d1655 (patch)
tree49eb05d3589f180c1056691efa5dd7c67b28dca8 /intern/cycles/render
parent10024603ee904a4201ae35b87643012543274d0f (diff)
parent01a3c9560938c98793a2d2a0b61e574ed5c27e4a (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'intern/cycles/render')
-rw-r--r--intern/cycles/render/image.cpp26
1 files changed, 2 insertions, 24 deletions
diff --git a/intern/cycles/render/image.cpp b/intern/cycles/render/image.cpp
index 625901ff258..9358b40a689 100644
--- a/intern/cycles/render/image.cpp
+++ b/intern/cycles/render/image.cpp
@@ -46,32 +46,10 @@ ImageManager::ImageManager(const DeviceInfo& info)
osl_texture_system = NULL;
animation_frame = 0;
- /* In case of multiple devices used we need to know type of an actual
- * compute device.
- *
- * NOTE: We assume that all the devices are same type, otherwise we'll
- * be screwed on so many levels..
- */
- DeviceType device_type = info.type;
- if(device_type == DEVICE_MULTI) {
- device_type = info.multi_devices[0].type;
- }
-
/* Set image limits */
max_num_images = TEX_NUM_MAX;
- has_half_images = true;
- cuda_fermi_limits = false;
-
- if(device_type == DEVICE_CUDA) {
- if(!info.has_bindless_textures) {
- /* CUDA Fermi hardware (SM 2.x) has a hard limit on the number of textures */
- cuda_fermi_limits = true;
- has_half_images = false;
- }
- }
- else if(device_type == DEVICE_OPENCL) {
- has_half_images = false;
- }
+ has_half_images = info.has_half_images;
+ cuda_fermi_limits = info.has_fermi_limits;
for(size_t type = 0; type < IMAGE_DATA_NUM_TYPES; type++) {
tex_num_images[type] = 0;