mesa/glthread: Call unmarshal_batch directly in glthread_finish
authorBartosz Tomczyk <bartosz.tomczyk86@gmail.com>
Thu, 30 Mar 2017 20:31:09 +0000 (22:31 +0200)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 3 Apr 2017 00:33:31 +0000 (10:33 +1000)
commit8d919ba3846aa5cd9dc85e0bdb98e71292ed9c97
treea326be9b3d31c0c10dd91f637003bd287a4c7ade
parentdbdd7231c252cbed52a196c86725730c07cd8006
mesa/glthread: Call unmarshal_batch directly in glthread_finish

Call it directly when batch queue is empty. This avoids costly thread
synchronisation. This commit improves performance of games that have
previously regressed with mesa_glthread=true.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/glthread.c