[Mesa-dev] [PATCH 17/21] mesa: kill wasted type conversions in debug output

Chia-I Wu olvaffe at gmail.com
Tue Apr 22 01:58:32 PDT 2014


Signed-off-by: Chia-I Wu <olv at lunarg.com>
---
 src/mesa/main/errors.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c
index 0aa9c8a..b9f8fc6 100644
--- a/src/mesa/main/errors.c
+++ b/src/mesa/main/errors.c
@@ -924,9 +924,9 @@ _mesa_PushDebugGroup(GLenum source, GLuint id, GLsizei length,
    emptySlot = debug_get_group_message(debug);
    debug_store_message(debug, emptySlot,
                        gl_enum_to_debug_source(source),
-                       gl_enum_to_debug_type(GL_DEBUG_TYPE_PUSH_GROUP),
+                       MESA_DEBUG_TYPE_PUSH_GROUP,
                        id,
-                       gl_enum_to_debug_severity(GL_DEBUG_SEVERITY_NOTIFICATION),
+                       MESA_DEBUG_SEVERITY_NOTIFICATION,
                        length, message);
 
    debug_push_group(debug);
@@ -953,9 +953,9 @@ _mesa_PopDebugGroup(void)
 
    gdmessage = debug_get_group_message(debug);
    log_msg(ctx, gdmessage->source,
-           gl_enum_to_debug_type(GL_DEBUG_TYPE_POP_GROUP),
+           MESA_DEBUG_TYPE_POP_GROUP,
            gdmessage->id,
-           gl_enum_to_debug_severity(GL_DEBUG_SEVERITY_NOTIFICATION),
+           MESA_DEBUG_SEVERITY_NOTIFICATION,
            gdmessage->length, gdmessage->message);
 
    debug_clear_message(debug, gdmessage);
-- 
1.8.5.3



More information about the mesa-dev mailing list