glthread: clean up debug_print_sync code
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4251>
This commit is contained in:
parent
b00d219ec0
commit
efaeac9e84
|
@ -258,5 +258,7 @@ void
|
||||||
_mesa_glthread_finish_before(struct gl_context *ctx, const char *func)
|
_mesa_glthread_finish_before(struct gl_context *ctx, const char *func)
|
||||||
{
|
{
|
||||||
_mesa_glthread_finish(ctx);
|
_mesa_glthread_finish(ctx);
|
||||||
debug_print_sync_fallback(func);
|
|
||||||
|
/* Uncomment this if you want to know where glthread syncs. */
|
||||||
|
/*printf("fallback to sync: %s\n", func);*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,29 +116,6 @@ _mesa_glthread_is_non_vbo_draw_elements_indirect(const struct gl_context *ctx)
|
||||||
glthread->CurrentVAO->HasUserPointer);
|
glthread->CurrentVAO->HasUserPointer);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define DEBUG_MARSHAL_PRINT_CALLS 0
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This is printed when we have fallen back to a sync. This can happen when
|
|
||||||
* MARSHAL_MAX_CMD_SIZE is exceeded.
|
|
||||||
*/
|
|
||||||
static inline void
|
|
||||||
debug_print_sync_fallback(const char *func)
|
|
||||||
{
|
|
||||||
#if DEBUG_MARSHAL_PRINT_CALLS
|
|
||||||
printf("fallback to sync: %s\n", func);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static inline void
|
|
||||||
debug_print_sync(const char *func)
|
|
||||||
{
|
|
||||||
#if DEBUG_MARSHAL_PRINT_CALLS
|
|
||||||
printf("sync: %s\n", func);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
struct _glapi_table *
|
struct _glapi_table *
|
||||||
_mesa_create_marshal_table(const struct gl_context *ctx);
|
_mesa_create_marshal_table(const struct gl_context *ctx);
|
||||||
|
|
Loading…
Reference in New Issue