Cycles: Gracefully handle out-of-memory happening in device vector
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 4 Sep 2015 07:38:10 +0000 (12:38 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 11 Oct 2015 14:41:59 +0000 (19:41 +0500)
commit34e7285b0a62e0a4daa74caecbaea2932b13c05b
treeff7db3d1aee1bf56296af63c74d06d2a5c16d8f9
parent27be9a2f3bdfc280a612b0d8137e473b2139ea76
Cycles: Gracefully handle out-of-memory happening in device vector

Currently only image loading benefits of this and will give magenta color
when image manager detects it's running out of memory.

This isn't ideal solution and can't handle all cases. For example, OOM
killer might kill process before it realized it run out of memory, but
in other cases this could prevent some crashes.

Reviewers: juicyfruit, dingto

Differential Revision: https://developer.blender.org/D1502
intern/cycles/device/device_memory.h
intern/cycles/render/image.cpp
intern/cycles/util/util_vector.h