glthread: don't insert _mesa_post_marshal_hook into every function

Let the developer decide that in the python script.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
This commit is contained in:
Marek Olšák
2020-02-19 17:29:14 -05:00
committed by Marge Bot
parent c920572f60
commit 19dc528bbf
3 changed files with 14 additions and 12 deletions
+3 -1
View File
@@ -131,7 +131,9 @@ class PrintCode(gl_XML.gl_print_base):
if not func.fixed_params and not func.variable_params:
out('(void) cmd;\n')
out('_mesa_post_marshal_hook(ctx);')
# Uncomment this if you want to call _mesa_glthread_finish for debugging
#out('_mesa_glthread_finish(ctx);')
def print_async_struct(self, func):
out('struct marshal_cmd_{0}'.format(func.name))