mesa: restructure bind_buffer_object for better performance
authorMarek Olšák <marek.olsak@amd.com>
Mon, 22 Aug 2022 05:40:35 +0000 (01:40 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 26 Sep 2022 22:58:16 +0000 (22:58 +0000)
commit37421a24ad82099823bf25c0976a84278b2b73a3
treea18161c71ed89967076e597737fd557ce863fbf7
parent6a1ede73f5ac2becaf184d79776982556277cc98
mesa: restructure bind_buffer_object for better performance

The CPU time spent in _mesa_BindBuffer_no_error decresed from 11.4% to 9.2%.
I explain in the code what is happening here because it's not obvious.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18828>
src/mesa/main/bufferobj.c