Blender Git Commit Log
Git Commits -> Revision 3ede748
Revision 3ede748 by Sergey Sharybin (master) July 15, 2013, 18:46 (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. |
Commit Details:
Full Hash: 3ede7482af0f77706bb79c471021c00488e5cf10
SVN Revision: 58277
Parent Commit: d44fb5b
Lines Changed: +52, -8
1 Modified Path:
/source/blender/gpu/intern/gpu_buffers.c (+52, -8) (Diff)