mesa: Track the current vertex/element array buffers for glthread.
We want to support glthread on GLES contexts with reasonable apps, and on desktop for apps that use VBOs but haven't completely moved to core GL. To do so, we have to deal with the "the user may or may not pass user pointers to draw calls" problem. Acked-by: Timothy Arceri <tarceri@itsqueeze.com> Acked-by: Marek Olšák <maraeo@gmail.com> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de> Tested-by: Mike Lothian <mike@fireburn.co.uk>
This commit is contained in:
committed by
Timothy Arceri
parent
238d027ed6
commit
012bfebc07
@@ -8,7 +8,8 @@
|
||||
|
||||
<category name="GL_ARB_base_instance" number="107">
|
||||
|
||||
<function name="DrawArraysInstancedBaseInstance" exec="dynamic" marshal="draw">
|
||||
<function name="DrawArraysInstancedBaseInstance" exec="dynamic" marshal="draw"
|
||||
marshal_fail="_mesa_glthread_is_non_vbo_draw_elements(ctx)">
|
||||
<param name="mode" type="GLenum"/>
|
||||
<param name="first" type="GLint"/>
|
||||
<param name="count" type="GLsizei"/>
|
||||
@@ -16,7 +17,8 @@
|
||||
<param name="baseinstance" type="GLuint"/>
|
||||
</function>
|
||||
|
||||
<function name="DrawElementsInstancedBaseInstance" exec="dynamic" marshal="draw">
|
||||
<function name="DrawElementsInstancedBaseInstance" exec="dynamic" marshal="draw"
|
||||
marshal_fail="_mesa_glthread_is_non_vbo_draw_elements(ctx)">
|
||||
<param name="mode" type="GLenum"/>
|
||||
<param name="count" type="GLsizei"/>
|
||||
<param name="type" type="GLenum"/>
|
||||
@@ -25,7 +27,8 @@
|
||||
<param name="baseinstance" type="GLuint"/>
|
||||
</function>
|
||||
|
||||
<function name="DrawElementsInstancedBaseVertexBaseInstance" exec="dynamic" marshal="draw">
|
||||
<function name="DrawElementsInstancedBaseVertexBaseInstance" exec="dynamic" marshal="draw"
|
||||
marshal_fail="_mesa_glthread_is_non_vbo_draw_elements(ctx)">
|
||||
<param name="mode" type="GLenum"/>
|
||||
<param name="count" type="GLsizei"/>
|
||||
<param name="type" type="GLenum"/>
|
||||
|
||||
Reference in New Issue
Block a user