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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2017-11-03 22:21:19 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2017-11-03 22:32:29 +0300
commit6ec599c68214413475cbea403ef869ed7c8113f9 (patch)
tree5052e130555b6850e17ad0b0944d22b7331871f6 /intern/cycles/render
parent6664ee209e96fe4a4ae8018bcf10f798a3b53751 (diff)
Fix T53247: mixed CPU + GPU render wrong texture limits.
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;