glthread: merge and collapse glBindBuffer calls that unbind and then bind
authorMarek Olšák <marek.olsak@amd.com>
Mon, 22 Aug 2022 00:32:08 +0000 (20:32 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Oct 2022 04:23:05 +0000 (04:23 +0000)
commit6e6245f1896e7aae20856210f3768f1e520bbda3
treea4655dd89da5cb7ae4bfff5375428078cec98b72
parent9b6e2783ebc0709b6d908c48c50e6e5375110789
glthread: merge and collapse glBindBuffer calls that unbind and then bind

This is a small optimization for viewperf. See the comment in the code.

Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18199>
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/glthread.c
src/mesa/main/glthread.h
src/mesa/main/glthread_bufferobj.c
src/mesa/main/glthread_list.c
src/mesa/main/glthread_marshal.h