Cycles: make CUDA code a bit more robust to host/device alloc failures.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Tue, 2 Jan 2018 21:56:07 +0000 (22:56 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Tue, 2 Jan 2018 22:46:19 +0000 (23:46 +0100)
commit6699454fb642bfd07e85f8d7bd8f8879878e3fc5
tree65d7c75edde60ba8d5e9b24256961f4390c6c19c
parente84966ac42cac6b1bef957cbe79c450f9858a063
Cycles: make CUDA code a bit more robust to host/device alloc failures.

Fixes a few corner cases found while stress testing host mapped memory.
intern/cycles/device/device_cuda.cpp
intern/cycles/device/device_memory.cpp
intern/cycles/render/buffers.cpp
intern/cycles/render/image.cpp
intern/cycles/render/image.h
intern/cycles/render/object.cpp