Blender Git Statistics -> Branches -> temp-T88822-gpu-thread-safe-index-builder

"Temp-t88822-gpu-thread-safe-index-builder" branch

Total commits : 18
Total committers : 1
First Commit : June 4, 2021
Latest Commit : June 8, 2021


Commits by Date

DateNumber of Commits
June 8, 20212
June 7, 202110
June 6, 20210
June 5, 20210
June 4, 20216

Committers

AuthorNumber of Commits
Jeroen Bakker18

Popular Files

FilenameTotal Edits
draw_cache_extract_mesh.cc8
extract_mesh_ibo_points.cc6
draw_cache_extract_mesh_private.h4
draw_cache_extract_mesh_extractors.c3
draw_cache_extract.h2
gpu_index_buffer.cc2
CMakeLists.txt1
CMakeLists.txt1
GPU_index_buffer.h1
gpu_index_buffer_test.cc1

Latest commits Feed

June 8, 2021, 14:30 (GMT)
Added back optional include.
June 8, 2021, 14:27 (GMT)
Merge branch 'master' into temp-T88822-gpu-thread-safe-index-builder
June 7, 2021, 12:52 (GMT)
Fix issue with recent merge.
June 7, 2021, 12:51 (GMT)
Addressed code review comments
June 7, 2021, 11:55 (GMT)
Remove unneeded enter.
June 7, 2021, 11:53 (GMT)
Merge branch 'master' into temp-T88822-gpu-thread-safe-index-builder
June 7, 2021, 11:48 (GMT)
Enabled multithreading for ibo.points.
June 7, 2021, 11:41 (GMT)
Merge branch 'master' into temp-T88822-gpu-thread-safe-index-builder
June 7, 2021, 10:19 (GMT)
Renamd default to none.
June 7, 2021, 10:14 (GMT)
Removed unneeded changes.
June 7, 2021, 09:58 (GMT)
Keep track of task user data in scheduled.
June 7, 2021, 06:13 (GMT)
Merge branch 'master' into temp-T88822-gpu-thread-safe-index-builder
June 4, 2021, 13:48 (GMT)
Fix compile error on windows.
June 4, 2021, 13:40 (GMT)
Fix crash when extracting multiple iterators.
June 4, 2021, 13:11 (GMT)
Cleanup: rename extract_run_and_finish_init > extract_run_single_threaded.
June 4, 2021, 13:09 (GMT)
Cleanup: remove `extract_extract_iter_task_data_create_mesh`.
June 4, 2021, 12:58 (GMT)
Generate task_id from task_counter.
June 4, 2021, 10:59 (GMT)
GPU: Thread safe index buffer builders.

Current index builder is designed to be used in a single thread.
This makes all index buffer extractions single threaded.
This patch adds a thread safe solution enabling multithreaded
building of index buffers.

To reduce locking the solution would provide a task/thread local
index buffer builder (called sub builder).
When a thread is finished this thread local index buffer builder
can be joined with the initial index buffer builder.

`GPU_indexbuf_subbuilder_init`: Initialized a sub builder. The
index list is shared between the parent and sub buffer, but the
counters are localized. Ensuring that updating counters would
not need any locking.

`GPU_indexbuf_subbuilder_finish`: merge the information of the
sub builder back to the parent builder. Needs to be invoked outside
the worker thread, or when sure that all worker threads have been
finished. Internal the function is not thread safe.

For testing purposes the extract_points extractor has been migrated to
the new API. Herefore changes to the mesh extractor were needed.

* When creating tasks, the task number of current task is stored in
ExtractTaskData including the total number of tasks.
* The total number of tasks will be passed as parameter to the init
function. In the init function needed space can be reserved in the
userdata.
* Adding two functions in `MeshExtract`.
** `task_init` will initialize the task specific userdata.
** `task_finish` should merge back the task specific userdata back.
* adding task_id parameter to the iteration functions so they can
access the correct data inside the user data without any need for
locking.

Maniphest Tasks: T88822

Differential Revision: https://developer.blender.org/D11499

MiikaHweb - Blender Git Statistics v1.06
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021