aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-03-06 16:56:54 -0500
committerMarge Bot <[email protected]>2020-04-30 22:01:55 +0000
commit2840bc3065b9e991b2c5880a2ee02e2458a758c4 (patch)
treefbd448e3934236af68944ed9be55fbce6ffeb3be /src/mapi
parent1485a3ff7b52eed21cdc199aaa76ee1692dfa3c8 (diff)
glthread: upload non-VBO vertices and indices for non-Indirect non-IBM draws
This is basically the same thing u_vbuf does. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4314>
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/gen/ARB_base_instance.xml9
-rw-r--r--src/mapi/glapi/gen/ARB_draw_elements_base_vertex.xml12
-rw-r--r--src/mapi/glapi/gen/ARB_draw_instanced.xml6
-rw-r--r--src/mapi/glapi/gen/gl_API.xml15
4 files changed, 14 insertions, 28 deletions
diff --git a/src/mapi/glapi/gen/ARB_base_instance.xml b/src/mapi/glapi/gen/ARB_base_instance.xml
index c4c2a5b99ab..0f0d0bfd2fd 100644
--- a/src/mapi/glapi/gen/ARB_base_instance.xml
+++ b/src/mapi/glapi/gen/ARB_base_instance.xml
@@ -8,8 +8,7 @@
<category name="GL_ARB_base_instance" number="107">
- <function name="DrawArraysInstancedBaseInstance" marshal="draw"
- marshal_sync="_mesa_glthread_has_non_vbo_vertices(ctx)">
+ <function name="DrawArraysInstancedBaseInstance" marshal="custom">
<param name="mode" type="GLenum"/>
<param name="first" type="GLint"/>
<param name="count" type="GLsizei"/>
@@ -17,8 +16,7 @@
<param name="baseinstance" type="GLuint"/>
</function>
- <function name="DrawElementsInstancedBaseInstance" marshal="draw"
- marshal_sync="_mesa_glthread_has_non_vbo_vertices_or_indices(ctx)">
+ <function name="DrawElementsInstancedBaseInstance" marshal="custom">
<param name="mode" type="GLenum"/>
<param name="count" type="GLsizei"/>
<param name="type" type="GLenum"/>
@@ -27,8 +25,7 @@
<param name="baseinstance" type="GLuint"/>
</function>
- <function name="DrawElementsInstancedBaseVertexBaseInstance" marshal="draw"
- marshal_sync="_mesa_glthread_has_non_vbo_vertices_or_indices(ctx)">
+ <function name="DrawElementsInstancedBaseVertexBaseInstance" marshal="custom">
<param name="mode" type="GLenum"/>
<param name="count" type="GLsizei"/>
<param name="type" type="GLenum"/>
diff --git a/src/mapi/glapi/gen/ARB_draw_elements_base_vertex.xml b/src/mapi/glapi/gen/ARB_draw_elements_base_vertex.xml
index 18940b84223..0350dd735a7 100644
--- a/src/mapi/glapi/gen/ARB_draw_elements_base_vertex.xml
+++ b/src/mapi/glapi/gen/ARB_draw_elements_base_vertex.xml
@@ -8,8 +8,7 @@
<category name="GL_ARB_draw_elements_base_vertex" number="62">
- <function name="DrawElementsBaseVertex" es2="3.2" exec="dynamic" marshal="draw"
- marshal_sync="_mesa_glthread_has_non_vbo_vertices_or_indices(ctx)">
+ <function name="DrawElementsBaseVertex" es2="3.2" exec="dynamic" marshal="custom">
<param name="mode" type="GLenum"/>
<param name="count" type="GLsizei"/>
<param name="type" type="GLenum"/>
@@ -17,8 +16,7 @@
<param name="basevertex" type="GLint"/>
</function>
- <function name="DrawRangeElementsBaseVertex" es2="3.2" exec="dynamic" marshal="draw"
- marshal_sync="_mesa_glthread_has_non_vbo_vertices_or_indices(ctx)">
+ <function name="DrawRangeElementsBaseVertex" es2="3.2" exec="dynamic" marshal="custom">
<param name="mode" type="GLenum"/>
<param name="start" type="GLuint"/>
<param name="end" type="GLuint"/>
@@ -28,8 +26,7 @@
<param name="basevertex" type="GLint"/>
</function>
- <function name="MultiDrawElementsBaseVertex" exec="dynamic" marshal="draw"
- marshal_sync="_mesa_glthread_has_non_vbo_vertices_or_indices(ctx)">
+ <function name="MultiDrawElementsBaseVertex" exec="dynamic" marshal="custom">
<param name="mode" type="GLenum"/>
<param name="count" type="const GLsizei *" count="primcount"/>
<param name="type" type="GLenum"/>
@@ -38,8 +35,7 @@
<param name="basevertex" type="const GLint *" count="primcount"/>
</function>
- <function name="DrawElementsInstancedBaseVertex" es2="3.2" marshal="draw"
- marshal_sync="_mesa_glthread_has_non_vbo_vertices_or_indices(ctx)">
+ <function name="DrawElementsInstancedBaseVertex" es2="3.2" marshal="custom">
<param name="mode" type="GLenum"/>
<param name="count" type="GLsizei"/>
<param name="type" type="GLenum"/>
diff --git a/src/mapi/glapi/gen/ARB_draw_instanced.xml b/src/mapi/glapi/gen/ARB_draw_instanced.xml
index 67846ea1b42..2d67f0a4334 100644
--- a/src/mapi/glapi/gen/ARB_draw_instanced.xml
+++ b/src/mapi/glapi/gen/ARB_draw_instanced.xml
@@ -8,16 +8,14 @@
<category name="GL_ARB_draw_instanced" number="44">
- <function name="DrawArraysInstancedARB" marshal="draw"
- marshal_sync="_mesa_glthread_has_non_vbo_vertices(ctx)">
+ <function name="DrawArraysInstancedARB" marshal="custom">
<param name="mode" type="GLenum"/>
<param name="first" type="GLint"/>
<param name="count" type="GLsizei"/>
<param name="primcount" type="GLsizei"/>
</function>
- <function name="DrawElementsInstancedARB" marshal="draw"
- marshal_sync="_mesa_glthread_has_non_vbo_vertices_or_indices(ctx)">
+ <function name="DrawElementsInstancedARB" marshal="custom">
<param name="mode" type="GLenum"/>
<param name="count" type="GLsizei"/>
<param name="type" type="GLenum"/>
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index 42857e4fc68..2c97c6dcedf 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -3181,16 +3181,14 @@
<glx handcode="true"/>
</function>
- <function name="DrawArrays" es1="1.0" es2="2.0" exec="dynamic" marshal="draw"
- marshal_sync="_mesa_glthread_has_non_vbo_vertices(ctx)">
+ <function name="DrawArrays" es1="1.0" es2="2.0" exec="dynamic" marshal="custom">
<param name="mode" type="GLenum"/>
<param name="first" type="GLint"/>
<param name="count" type="GLsizei"/>
<glx rop="193" handcode="true"/>
</function>
- <function name="DrawElements" es1="1.0" es2="2.0" exec="dynamic" marshal="draw"
- marshal_sync="_mesa_glthread_has_non_vbo_vertices_or_indices(ctx)">
+ <function name="DrawElements" es1="1.0" es2="2.0" exec="dynamic" marshal="custom">
<param name="mode" type="GLenum"/>
<param name="count" type="GLsizei"/>
<param name="type" type="GLenum"/>
@@ -3760,8 +3758,7 @@
<glx rop="4097"/>
</function>
- <function name="DrawRangeElements" es2="3.0" exec="dynamic" marshal="draw"
- marshal_sync="_mesa_glthread_has_non_vbo_vertices_or_indices(ctx)">
+ <function name="DrawRangeElements" es2="3.0" exec="dynamic" marshal="custom">
<param name="mode" type="GLenum"/>
<param name="start" type="GLuint"/>
<param name="end" type="GLuint"/>
@@ -4761,8 +4758,7 @@
<glx handcode="true"/>
</function>
- <function name="MultiDrawArrays" marshal="draw"
- marshal_sync="_mesa_glthread_has_non_vbo_vertices(ctx)">
+ <function name="MultiDrawArrays" marshal="custom">
<param name="mode" type="GLenum"/>
<param name="first" type="const GLint *" count="primcount"/>
<param name="count" type="const GLsizei *" count="primcount"/>
@@ -10286,8 +10282,7 @@
<param name="primcount" type="GLsizei"/>
</function>
- <function name="MultiDrawElementsEXT" es1="1.0" es2="2.0" exec="dynamic" marshal="draw"
- marshal_sync="_mesa_glthread_has_non_vbo_vertices_or_indices(ctx)">
+ <function name="MultiDrawElementsEXT" es1="1.0" es2="2.0" exec="dynamic" marshal="custom">
<param name="mode" type="GLenum"/>
<param name="count" type="const GLsizei *" count="primcount"/>
<param name="type" type="GLenum"/>