Blender Git Loki

Git Commits -> Revision fbed204

Revision fbed204 by Sergey Sharybin (master)
September 4, 2014, 11:25 (GMT)
Fix wrong track of the memory when doing device vector resize before freeing it

This is rather legit case which happens i.e. when having persistent images enabled
and session is updating the lookup tables.

Now device_memory keeps track of amount of memory being allocated on the device,
which makes freeing using the proper allocated size, not the CPU side buffer
size.

Commit Details:

Full Hash: fbed2047c8e84a535c32bf3f3fb3ea1791a08571
Parent Commit: 5e3b63a
Lines Changed: +30, -15

5 Modified Paths:

/intern/cycles/device/device_cpu.cpp (+14, -10) (Diff)
/intern/cycles/device/device_cuda.cpp (+10, -4) (Diff)
/intern/cycles/device/device_memory.h (+2, -0) (Diff)
/intern/cycles/device/device_opencl.cpp (+3, -1) (Diff)
/intern/cycles/util/util_stats.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021