glthread: remove debug_print_marshal function
authorMarek Olšák <marek.olsak@amd.com>
Thu, 5 Mar 2020 20:57:46 +0000 (15:57 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 20 Mar 2020 00:00:22 +0000 (00:00 +0000)
We don't need to print every function we execute.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4251>

src/mapi/glapi/gen/gl_marshal.py
src/mesa/main/marshal.c
src/mesa/main/marshal.h

index 02c94dd74dbd31aa72c1f0fe6be3a60ec9fe17d2..ce5cbb275e3f94621b16d170251906417bd8f8fa 100644 (file)
@@ -261,8 +261,6 @@ class PrintCode(gl_XML.gl_print_base):
             out('int cmd_size = {0};'.format(' + '.join(size_terms)))
             out('{0} *cmd;'.format(struct))
 
-            out('debug_print_marshal("{0}");'.format(func.name))
-
             self.validate_count_or_fallback(func)
 
             if func.marshal_fail:
index b2935f63753aa0486ea172b94ab6ca36155e6717..ab6a7d6e290f84b4b426423c9ceb5de9edb0d002 100644 (file)
@@ -248,7 +248,6 @@ _mesa_marshal_BufferData_merged(GLuint target_or_name, GLsizeiptr size,
                        target_or_name == GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD;
    bool copy_data = data && !external_mem;
    int cmd_size = sizeof(struct marshal_cmd_BufferData) + (copy_data ? size : 0);
-   debug_print_marshal("BufferData");
 
    if (unlikely(size < 0 || size > INT_MAX || cmd_size < 0 ||
                 cmd_size > MARSHAL_MAX_CMD_SIZE ||
@@ -362,7 +361,6 @@ _mesa_marshal_BufferSubData_merged(GLuint target_or_name, GLintptr offset,
 {
    GET_CURRENT_CONTEXT(ctx);
    size_t cmd_size = sizeof(struct marshal_cmd_BufferSubData) + size;
-   debug_print_marshal(func);
 
    if (unlikely(size < 0 || size > INT_MAX || cmd_size < 0 ||
                 cmd_size > MARSHAL_MAX_CMD_SIZE || !data ||
index acc6a02b920b6e14662429a489d6fa895b4d4fce..c28d7f37637424aea045f9dc19a26a65d3977479 100644 (file)
@@ -139,13 +139,6 @@ debug_print_sync(const char *func)
 #endif
 }
 
-static inline void
-debug_print_marshal(const char *func)
-{
-#if DEBUG_MARSHAL_PRINT_CALLS
-   printf("marshal: %s\n", func);
-#endif
-}
 
 struct _glapi_table *
 _mesa_create_marshal_table(const struct gl_context *ctx);