The other user of print_sync_dispatch() was ending up with code that
looked like:
_mesa_glthread_finish(ctx);
_mesa_glthread_restore_dispatch(ctx);
_mesa_glthread_finish(ctx);
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
out('return {0};'.format(call))
def print_sync_dispatch(self, func):
- out('_mesa_glthread_finish(ctx);')
out('debug_print_sync_fallback("{0}");'.format(func.name))
self.print_sync_call(func)
if need_fallback_sync:
out('fallback_to_sync:')
with indent():
+ out('_mesa_glthread_finish(ctx);')
self.print_sync_dispatch(func)
out('}')