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>
This commit is contained in:
Marek Olšák
2022-08-21 20:32:08 -04:00
committed by Marge Bot
parent 9b6e2783eb
commit 6e6245f189
6 changed files with 94 additions and 8 deletions
+1 -2
View File
@@ -5094,8 +5094,7 @@
<type name="intptr" size="4" glx_name="CARD32"/>
<type name="sizeiptr" size="4" unsigned="true" glx_name="CARD32"/>
<function name="BindBuffer" es1="1.1" es2="2.0" no_error="true"
marshal_call_after="_mesa_glthread_BindBuffer(ctx, target, buffer);">
<function name="BindBuffer" es1="1.1" es2="2.0" no_error="true" marshal="custom">
<param name="target" type="GLenum"/>
<param name="buffer" type="GLuint"/>
<glx ignore="true"/>