aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-03-06 19:00:03 -0500
committerMarge Bot <[email protected]>2020-04-30 22:01:55 +0000
commit47cf310a671b75b1552a7b5d8accc8baa8ecdefb (patch)
treea1dc75cd3f92372080e23d5d95d9e84d7da23a38 /src/mapi
parent9037005d6034d6bcbeb508e0f783622e2351b957 (diff)
glthread: track primitive restart state
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4314>
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/gen/GL3x.xml3
-rw-r--r--src/mapi/glapi/gen/gl_API.xml5
2 files changed, 5 insertions, 3 deletions
diff --git a/src/mapi/glapi/gen/GL3x.xml b/src/mapi/glapi/gen/GL3x.xml
index ced4e10f101..6c256922fe8 100644
--- a/src/mapi/glapi/gen/GL3x.xml
+++ b/src/mapi/glapi/gen/GL3x.xml
@@ -563,7 +563,8 @@
<param name="buffer" type="GLuint"/>
</function>
- <function name="PrimitiveRestartIndex" no_error="true">
+ <function name="PrimitiveRestartIndex" no_error="true"
+ marshal_call_after="_mesa_glthread_PrimitiveRestartIndex(ctx, index);">
<param name="index" type="GLuint"/>
</function>
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index 74aeb2f1c31..2ee1c7f9eda 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -2372,13 +2372,14 @@
<glx rop="137"/>
</function>
- <function name="Disable" es1="1.0" es2="2.0">
+ <function name="Disable" es1="1.0" es2="2.0"
+ marshal_call_after="if (cap == GL_PRIMITIVE_RESTART || cap == GL_PRIMITIVE_RESTART_FIXED_INDEX) _mesa_glthread_set_prim_restart(ctx, cap, false);">
<param name="cap" type="GLenum"/>
<glx rop="138" handcode="client"/>
</function>
<function name="Enable" es1="1.0" es2="2.0"
- marshal_call_after='if (cap == GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB) _mesa_glthread_disable(ctx, "Enable(DEBUG_OUTPUT_SYNCHRONOUS)");'>
+ marshal_call_after='if (cap == GL_PRIMITIVE_RESTART || cap == GL_PRIMITIVE_RESTART_FIXED_INDEX) { _mesa_glthread_set_prim_restart(ctx, cap, true); } else if (cap == GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB) { _mesa_glthread_disable(ctx, "Enable(DEBUG_OUTPUT_SYNCHRONOUS)"); }'>
<param name="cap" type="GLenum"/>
<glx rop="139" handcode="client"/>
</function>