diff options
-rw-r--r-- | src/mapi/glapi/gen/ARB_direct_state_access.xml | 2 | ||||
-rw-r--r-- | src/mapi/glapi/gen/ARB_vertex_array_object.xml | 6 | ||||
-rw-r--r-- | src/mapi/glapi/gen/ARB_vertex_attrib_64bit.xml | 2 | ||||
-rw-r--r-- | src/mapi/glapi/gen/EXT_direct_state_access.xml | 2 | ||||
-rw-r--r-- | src/mapi/glapi/gen/GL3x.xml | 2 | ||||
-rw-r--r-- | src/mapi/glapi/gen/es_EXT.xml | 2 | ||||
-rw-r--r-- | src/mapi/glapi/gen/gl_API.xml | 32 | ||||
-rw-r--r-- | src/mapi/glapi/gen/gl_marshal.py | 2 | ||||
-rw-r--r-- | src/mesa/main/glthread_varray.c | 2 |
9 files changed, 27 insertions, 25 deletions
diff --git a/src/mapi/glapi/gen/ARB_direct_state_access.xml b/src/mapi/glapi/gen/ARB_direct_state_access.xml index ead893e1c67..ec7b13609a1 100644 --- a/src/mapi/glapi/gen/ARB_direct_state_access.xml +++ b/src/mapi/glapi/gen/ARB_direct_state_access.xml @@ -580,7 +580,7 @@ <!-- Vertex Array object functions --> <function name="CreateVertexArrays" no_error="true" - marshal_call_after="_mesa_glthread_GenVertexArrays(ctx, n, arrays);"> + marshal_call_after="if (COMPAT) _mesa_glthread_GenVertexArrays(ctx, n, arrays);"> <param name="n" type="GLsizei" /> <param name="arrays" type="GLuint *" /> </function> diff --git a/src/mapi/glapi/gen/ARB_vertex_array_object.xml b/src/mapi/glapi/gen/ARB_vertex_array_object.xml index e149997d05c..ba011987e8d 100644 --- a/src/mapi/glapi/gen/ARB_vertex_array_object.xml +++ b/src/mapi/glapi/gen/ARB_vertex_array_object.xml @@ -11,18 +11,18 @@ <enum name="VERTEX_ARRAY_BINDING" value="0x85B5"/> <function name="BindVertexArray" es2="3.0" no_error="true" - marshal_call_after="_mesa_glthread_BindVertexArray(ctx, array);"> + marshal_call_after="if (COMPAT) _mesa_glthread_BindVertexArray(ctx, array);"> <param name="array" type="GLuint"/> </function> <function name="DeleteVertexArrays" es2="3.0" no_error="true" - marshal_call_after="_mesa_glthread_DeleteVertexArrays(ctx, n, arrays);"> + marshal_call_after="if (COMPAT) _mesa_glthread_DeleteVertexArrays(ctx, n, arrays);"> <param name="n" type="GLsizei"/> <param name="arrays" type="const GLuint *" count="n"/> </function> <function name="GenVertexArrays" es2="3.0" no_error="true" - marshal_call_after="_mesa_glthread_GenVertexArrays(ctx, n, arrays);"> + marshal_call_after="if (COMPAT) _mesa_glthread_GenVertexArrays(ctx, n, arrays);"> <param name="n" type="GLsizei"/> <param name="arrays" type="GLuint *"/> </function> diff --git a/src/mapi/glapi/gen/ARB_vertex_attrib_64bit.xml b/src/mapi/glapi/gen/ARB_vertex_attrib_64bit.xml index 1342e7e777e..45c30f48378 100644 --- a/src/mapi/glapi/gen/ARB_vertex_attrib_64bit.xml +++ b/src/mapi/glapi/gen/ARB_vertex_attrib_64bit.xml @@ -52,7 +52,7 @@ </function> <function name="VertexAttribLPointer" no_error="true" marshal="async" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="index" type="GLuint"/> <param name="size" type="GLint"/> <param name="type" type="GLenum"/> diff --git a/src/mapi/glapi/gen/EXT_direct_state_access.xml b/src/mapi/glapi/gen/EXT_direct_state_access.xml index 3888dd34e6e..397c75a37d0 100644 --- a/src/mapi/glapi/gen/EXT_direct_state_access.xml +++ b/src/mapi/glapi/gen/EXT_direct_state_access.xml @@ -658,7 +658,7 @@ </function> <function name="MultiTexCoordPointerEXT" marshal="async" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="texunit" type="GLenum" /> <param name="size" type="GLint" /> <param name="type" type="GLenum" /> diff --git a/src/mapi/glapi/gen/GL3x.xml b/src/mapi/glapi/gen/GL3x.xml index 16035adc01d..943e5289a93 100644 --- a/src/mapi/glapi/gen/GL3x.xml +++ b/src/mapi/glapi/gen/GL3x.xml @@ -258,7 +258,7 @@ <function name="VertexAttribIPointer" es2="3.0" marshal="async" no_error="true" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="index" type="GLuint"/> <param name="size" type="GLint"/> <param name="type" type="GLenum"/> diff --git a/src/mapi/glapi/gen/es_EXT.xml b/src/mapi/glapi/gen/es_EXT.xml index 9dc1444bafe..107ca9a2cb0 100644 --- a/src/mapi/glapi/gen/es_EXT.xml +++ b/src/mapi/glapi/gen/es_EXT.xml @@ -320,7 +320,7 @@ <function name="PointSizePointerOES" es1="1.0" desktop="false" no_error="true" marshal="async" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="type" type="GLenum"/> <param name="stride" type="GLsizei"/> <param name="pointer" type="const GLvoid *"/> diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 3a703f2a3d4..7d6e01eb031 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -3166,7 +3166,7 @@ <function name="ColorPointer" es1="1.0" deprecated="3.1" marshal="async" no_error="true" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="size" type="GLint"/> <param name="type" type="GLenum"/> <param name="stride" type="GLsizei"/> @@ -3198,7 +3198,7 @@ <function name="EdgeFlagPointer" deprecated="3.1" marshal="async" no_error="true" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="stride" type="GLsizei"/> <param name="pointer" type="const GLvoid *"/> <glx handcode="true"/> @@ -3217,7 +3217,7 @@ <function name="IndexPointer" deprecated="3.1" marshal="async" no_error="true" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="type" type="GLenum"/> <param name="stride" type="GLsizei"/> <param name="pointer" type="const GLvoid *"/> @@ -3233,7 +3233,7 @@ <function name="NormalPointer" es1="1.0" deprecated="3.1" marshal="async" no_error="true" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="type" type="GLenum"/> <param name="stride" type="GLsizei"/> <param name="pointer" type="const GLvoid *"/> @@ -3242,7 +3242,7 @@ <function name="TexCoordPointer" es1="1.0" deprecated="3.1" marshal="async" no_error="true" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="size" type="GLint"/> <param name="type" type="GLenum"/> <param name="stride" type="GLsizei"/> @@ -3252,7 +3252,7 @@ <function name="VertexPointer" es1="1.0" deprecated="3.1" marshal="async" no_error="true" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="size" type="GLint"/> <param name="type" type="GLenum"/> <param name="stride" type="GLsizei"/> @@ -4748,7 +4748,7 @@ <function name="FogCoordPointer" deprecated="3.1" marshal="async" no_error="true" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="type" type="GLenum"/> <param name="stride" type="GLsizei"/> <param name="pointer" type="const GLvoid *"/> @@ -4889,7 +4889,7 @@ <function name="SecondaryColorPointer" deprecated="3.1" marshal="async" no_error="true" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="size" type="GLint"/> <param name="type" type="GLenum"/> <param name="stride" type="GLsizei"/> @@ -5055,7 +5055,7 @@ <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);"> + marshal_call_after="if (COMPAT) _mesa_glthread_BindBuffer(ctx, target, buffer);"> <param name="target" type="GLenum"/> <param name="buffer" type="GLuint"/> <glx ignore="true"/> @@ -5847,7 +5847,7 @@ <function name="VertexAttribPointer" es2="2.0" marshal="async" no_error="true" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="index" type="GLuint"/> <param name="size" type="GLint"/> <param name="type" type="GLenum"/> @@ -9245,7 +9245,7 @@ </function> <function name="ColorPointerEXT" deprecated="3.1" marshal="async" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="size" type="GLint"/> <param name="type" type="GLenum"/> <param name="stride" type="GLsizei"/> @@ -9261,7 +9261,7 @@ </function> <function name="EdgeFlagPointerEXT" deprecated="3.1" marshal="async" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="stride" type="GLsizei"/> <param name="count" type="GLsizei"/> <param name="pointer" type="const GLboolean *"/> @@ -9274,7 +9274,7 @@ </function> <function name="IndexPointerEXT" deprecated="3.1" marshal="async" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="type" type="GLenum"/> <param name="stride" type="GLsizei"/> <param name="count" type="GLsizei"/> @@ -9283,7 +9283,7 @@ </function> <function name="NormalPointerEXT" deprecated="3.1" marshal="async" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="type" type="GLenum"/> <param name="stride" type="GLsizei"/> <param name="count" type="GLsizei"/> @@ -9292,7 +9292,7 @@ </function> <function name="TexCoordPointerEXT" deprecated="3.1" marshal="async" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="size" type="GLint"/> <param name="type" type="GLenum"/> <param name="stride" type="GLsizei"/> @@ -9302,7 +9302,7 @@ </function> <function name="VertexPointerEXT" deprecated="3.1" marshal="async" - marshal_call_after="_mesa_glthread_AttribPointer(ctx);"> + marshal_call_after="if (COMPAT) _mesa_glthread_AttribPointer(ctx);"> <param name="size" type="GLint"/> <param name="type" type="GLenum"/> <param name="stride" type="GLsizei"/> diff --git a/src/mapi/glapi/gen/gl_marshal.py b/src/mapi/glapi/gen/gl_marshal.py index 05c4e28eec1..02c94dd74db 100644 --- a/src/mapi/glapi/gen/gl_marshal.py +++ b/src/mapi/glapi/gen/gl_marshal.py @@ -35,6 +35,8 @@ header = """ #include "dispatch.h" #include "glthread.h" #include "marshal.h" + +#define COMPAT (ctx->API != API_OPENGL_CORE) """ diff --git a/src/mesa/main/glthread_varray.c b/src/mesa/main/glthread_varray.c index 8786f0f2d09..7a261552202 100644 --- a/src/mesa/main/glthread_varray.c +++ b/src/mesa/main/glthread_varray.c @@ -139,6 +139,6 @@ _mesa_glthread_AttribPointer(struct gl_context *ctx) { struct glthread_state *glthread = ctx->GLThread; - if (ctx->API != API_OPENGL_CORE && !glthread->vertex_array_is_vbo) + if (!glthread->vertex_array_is_vbo) glthread->CurrentVAO->HasUserPointer = true; } |