Blender Git Loki

Git Commits -> Revision b9ae749

Revision b9ae749 by Sergey Sharybin (master)
August 19, 2013, 10:06 (GMT)
Make GPU buffers allocation/freeing safe for threading

Code in GPU_buffers_free was already trying to be safe
for threading, by skipping OGL calls there, but in fact
it was still buggy.

Namely, freeing was doing buffers shift in a cycle, and
if two threads will call this function shifting will go
crazy.

Now made it so GPU_buffers_alloc and GPU_buffers_free
are using mutex lock, so they're completely safe for
threading. Same goes to gpu_buffer_setup function.

It required minor functions reshuffle, so there're no
locks happening from locked thread, but it's all very
straightforward change

--
svn merge -r58276:58277 ^/branches/soc-2013-depsgraph_mt

Commit Details:

Full Hash: b9ae749480aeeb7e77f16ebe667ddfcf8b63650e
SVN Revision: 59272
Parent Commit: 59dfb05
Lines Changed: +52, -8

1 Modified Path:

/source/blender/gpu/intern/gpu_buffers.c (+52, -8) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021