Mesa (master): glthread: remove if (COMPAT) conditions from functions that are GL-compat-only

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jan 21 00:30:49 UTC 2021


Module: Mesa
Branch: master
Commit: fd678bef40b74f9209b2529797df26a4a31d6f7e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd678bef40b74f9209b2529797df26a4a31d6f7e

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Wed Dec 23 12:30:13 2020 -0500

glthread: remove if (COMPAT) conditions from functions that are GL-compat-only

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8297>

---

 src/mapi/glapi/gen/gl_API.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index d04f4c4f1d6..704028a3e73 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -1111,14 +1111,14 @@
     <type name="DEBUGPROC" size="4" pointer="true"/>
 
     <function name="NewList" deprecated="3.1"
-              marshal_call_after="if (COMPAT) ctx->GLThread.ListMode = mode;">
+              marshal_call_after="ctx->GLThread.ListMode = mode;">
         <param name="list" type="GLuint"/>
         <param name="mode" type="GLenum"/>
         <glx sop="101"/>
     </function>
 
     <function name="EndList" deprecated="3.1"
-              marshal_call_after="if (COMPAT) ctx->GLThread.ListMode = 0;">
+              marshal_call_after="ctx->GLThread.ListMode = 0;">
         <glx sop="102"/>
     </function>
 
@@ -3402,12 +3402,12 @@
     </function>
 
     <function name="PopClientAttrib" deprecated="3.1"
-              marshal_call_after="if (COMPAT) _mesa_glthread_PopClientAttrib(ctx);">
+              marshal_call_after="_mesa_glthread_PopClientAttrib(ctx);">
         <glx handcode="true"/>
     </function>
 
     <function name="PushClientAttrib" deprecated="3.1"
-              marshal_call_after="if (COMPAT) _mesa_glthread_PushClientAttrib(ctx, mask, false);">
+              marshal_call_after="_mesa_glthread_PushClientAttrib(ctx, mask, false);">
         <param name="mask" type="GLbitfield"/>
         <glx handcode="true"/>
     </function>



More information about the mesa-commit mailing list